mastrokademux: do not push discont buffers if they aren't discont

Unset the discont flag instead of posssibly pushing a buffer with
a flag that's still set.

https://bugzilla.gnome.org/show_bug.cgi?id=682110
This commit is contained in:
Arnaud Vrac 2013-07-17 17:11:44 +02:00 committed by Tim-Philipp Müller
parent 4c97701650
commit 6e26f1d067

View file

@ -2614,6 +2614,8 @@ gst_matroska_demux_push_stream_headers (GstMatroskaDemux * demux,
if (stream->set_discont) {
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
stream->set_discont = FALSE;
} else {
GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DISCONT);
}
/* push out all headers in one go and use last flow return */
@ -3617,6 +3619,8 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
GST_DEBUG_OBJECT (demux, "marking DISCONT");
GST_BUFFER_FLAG_SET (sub, GST_BUFFER_FLAG_DISCONT);
stream->set_discont = FALSE;
} else {
GST_BUFFER_FLAG_UNSET (sub, GST_BUFFER_FLAG_DISCONT);
}
/* reverse playback book-keeping */