Commit acbdfcb0 authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: removed couts from downloader

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent b6140023
......@@ -42,13 +42,9 @@ DASHDownloader::DASHDownloader (HTTPConnectionManager *conManager, IAdaptationL
}
DASHDownloader::~DASHDownloader ()
{
std::cout << "Downloader set eof" << std::endl;
this->t_sys->buffer->setEOF(true);
std::cout << "Downloader try to join" << std::endl;
vlc_join(this->dashDLThread, NULL);
free(this->t_sys);
std::cout << "Downloader thread joined tsys freed" << std::endl;
}
bool DASHDownloader::start ()
......@@ -92,16 +88,11 @@ void* DASHDownloader::download (void *thread_sys)
block_t *bufBlock = block_Alloc(ret);
memcpy(bufBlock->p_buffer, block->p_buffer, ret);
bufBlock->i_length = (mtime_t)((ret * 8) / ((float)currentChunk->getBitrate() / 1000000));
std::cout << "Put block into buffer MilliSeconds: " << bufBlock->i_length
<< " Bytes: " << bufBlock->i_buffer
<< " Bitrate: " << currentChunk->getBitrate() << std::endl;
buffer->put(bufBlock);
}
}
}while(!buffer->getEOF());
std::cout << "Downloader end: " << std::endl;
block_Release(block);
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment