Commit e88d9b0e authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: flag eof on failed buffered chunks

Otherwise keeps trying over all other segments
parent c9550928
......@@ -270,6 +270,7 @@ void HTTPChunkBufferedSource::bufferize(size_t readsize)
if(!prepare())
{
done = true;
eof = true;
vlc_cond_signal(&avail);
vlc_mutex_unlock(&lock);
return;
......@@ -285,7 +286,10 @@ void HTTPChunkBufferedSource::bufferize(size_t readsize)
block_t *p_block = block_Alloc(readsize);
if(!p_block)
{
eof = true;
return;
}
struct
{
......@@ -299,6 +303,7 @@ void HTTPChunkBufferedSource::bufferize(size_t readsize)
block_Release(p_block);
vlc_mutex_lock(&lock);
done = true;
eof = true;
rate.size = buffered + consumed;
rate.time = mdate() - downloadstart;
downloadstart = 0;
......@@ -313,6 +318,7 @@ void HTTPChunkBufferedSource::bufferize(size_t readsize)
if((size_t) ret < readsize)
{
done = true;
eof = true;
rate.size = buffered + consumed;
rate.time = mdate() - downloadstart;
downloadstart = 0;
......
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