Commit 590b7bb1 authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Jean-Baptiste Kempf
Browse files

demux: adaptive: early fail on unsupported format

parent 077d5489
......@@ -363,6 +363,9 @@ ChunkInterface * SegmentTracker::getNextChunk(bool switch_allowed,
/* advance or don't trigger duplicate events */
next = current = chunk.pos;
if(format == StreamFormat(StreamFormat::UNSUPPORTED))
return nullptr; /* Can't return chunk because no demux will be created */
/* From this point chunk must be returned */
ChunkInterface *returnedChunk;
StreamFormat chunkformat = chunk.chunk->getStreamFormat();
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