Commit 0e621a7b authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: dash: force min update to be non-zero

parent c6d98971
......@@ -40,7 +40,7 @@ AbstractPlaylist::AbstractPlaylist (stream_t *stream_) :
availabilityStartTime.Set( 0 );
availabilityEndTime.Set( 0 );
duration.Set( 0 );
minUpdatePeriod.Set( 0 );
minUpdatePeriod.Set( 2 );
maxSegmentDuration.Set( 0 );
minBufferTime.Set( 0 );
timeShiftBufferDepth.Set( 0 );
......
......@@ -101,7 +101,11 @@ void IsoffMainParser::setMPDAttributes ()
it = attr.find("minimumUpdatePeriod");
if(it != attr.end())
mpd->minUpdatePeriod.Set(IsoTime(it->second));
{
mtime_t minupdate = IsoTime(it->second);
if(minupdate > 0)
mpd->minUpdatePeriod.Set(minupdate);
}
it = attr.find("maxSegmentDuration");
if(it != attr.end())
......
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