Commit 9dd48c50 authored by George Kiagiadakis's avatar George Kiagiadakis Committed by Sebastian Dröge

qtdemux: forward DISCONT from upstream to the output streams

This makes sense in DASH reverse playback, where the upstream dashdemux
will download DASH segments in reverse order, but push their buffers
forward to qtdemux and mark each segment start as DISCONT. This needs
to be forwarded downstream to the parser/decoder, otherwise it won't work.
parent 09b1ba94
......@@ -4618,6 +4618,17 @@ gst_qtdemux_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * inbuf)
GstQTDemux *demux;
demux = GST_QTDEMUX (parent);
gint i;
GST_DEBUG_OBJECT (demux, "Got DISCONT, marking all streams as DISCONT");
for (i = 0; i < demux->n_streams; i++) {
demux->streams[i]->discont = TRUE;
gst_adapter_push (demux->adapter, inbuf);
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