Commit 648a5e5d authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: enforce minimal deadline

or breaks with slavedemuxers
parent 2febfd1a
......@@ -349,8 +349,9 @@ AbstractStream::buffering_status AbstractStream::doBufferize(mtime_t nz_deadline
return AbstractStream::buffering_suspended;
}
nz_deadline = commandsqueue->getBufferingLevel() +
(i_total_buffering - commandsqueue->getDemuxedAmount()) / (CLOCK_FREQ/4);
mtime_t nz_extdeadline = commandsqueue->getBufferingLevel() +
(i_total_buffering - commandsqueue->getDemuxedAmount()) / (CLOCK_FREQ/4);
nz_deadline = std::max(nz_deadline, nz_extdeadline);
/* need to read, demuxer still buffering, ... */
vlc_mutex_unlock(&lock);
......
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