diff --git a/ChangeLog b/ChangeLog index 83fffc1e4b..6292b9da79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-09-27 Tim-Philipp Müller + + * gst/matroska/matroska-demux.c: + Fix setting the discont flag on the first buffer + pushed downstream for formats with private codec + data that needs to be deserialised into buffers + (such as vorbis and FLAC when in a matroska container). + 2007-09-27 Wim Taymans Patch by: Antoine Tremblay diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 373517428b..f5f7733366 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -2274,6 +2274,12 @@ gst_matroska_demux_push_hdr_buf (GstMatroskaDemux * demux, if (flow == GST_FLOW_OK) { memcpy (GST_BUFFER_DATA (header_buf), data, len); + + if (stream->set_discont) { + GST_BUFFER_FLAG_SET (header_buf, GST_BUFFER_FLAG_DISCONT); + stream->set_discont = FALSE; + } + flow = gst_pad_push (stream->pad, header_buf); }