mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
4c97701650
commit
6e26f1d067
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue