Skip to content
Snippets Groups Projects
Commit 752a6c48 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

demux: adaptive: fix read cache truncation

regression from 467c01b3
parent cf14b255
No related branches found
No related tags found
Loading
Pipeline #26038 passed with stages
in 26 minutes and 40 seconds
......@@ -312,10 +312,9 @@ std::string BufferedChunksSourceStream::getContentType()
return source->getContentType();
}
void BufferedChunksSourceStream::fillByteStream(size_t sz)
void BufferedChunksSourceStream::fillByteStream(size_t level)
{
sz = std::min(sz, (size_t)MAX_BACKEND);
while(!b_eof && sz > block_BytestreamRemaining(&bs))
while(!b_eof && level > block_BytestreamRemaining(&bs))
{
block_t *p_block = source->readNextBlock();
b_eof = !p_block;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment