Commit 070398a5 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: force switch on deactivated streams

Because representation is now unset on stream deactivation,
we need to force selecting one.
parent 2f4dcee5
...@@ -81,8 +81,13 @@ SegmentChunk * SegmentTracker::getNextChunk(bool switch_allowed, HTTPConnectionM ...@@ -81,8 +81,13 @@ SegmentChunk * SegmentTracker::getNextChunk(bool switch_allowed, HTTPConnectionM
return NULL; return NULL;
/* Ensure we don't keep chaining init/index without data */ /* Ensure we don't keep chaining init/index without data */
if( initializing && prevRepresentation ) if( initializing )
switch_allowed = false; {
if( prevRepresentation )
switch_allowed = false;
else
switch_allowed = true;
}
if( !switch_allowed || if( !switch_allowed ||
(prevRepresentation && prevRepresentation->getSwitchPolicy() == SegmentInformation::SWITCH_UNAVAILABLE) ) (prevRepresentation && prevRepresentation->getSwitchPolicy() == SegmentInformation::SWITCH_UNAVAILABLE) )
......
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