From: <tp...@ke...> - 2007-09-27 15:00:42
|
CVS Root: /cvs/gstreamer Module: gst-plugins-good Changes by: tpm Date: Thu Sep 27 2007 15:00:44 UTC Log message: * 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). Modified files: . : ChangeLog gst/matroska : matroska-demux.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.3121&r2=1.3122 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/matroska/matroska-demux.c.diff?r1=1.91&r2=1.92 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v retrieving revision 1.3121 retrieving revision 1.3122 diff -u -d -r1.3121 -r1.3122 --- ChangeLog 27 Sep 2007 11:10:10 -0000 1.3121 +++ ChangeLog 27 Sep 2007 15:00:26 -0000 1.3122 @@ -1,3 +1,11 @@ +2007-09-27 Tim-Philipp Müller <tim at centricular dot net> + + * 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 <wim...@gm...> Patch by: Antoine Tremblay <hexa00 at gmail dot com> Index: matroska-demux.c RCS file: /cvs/gstreamer/gst-plugins-good/gst/matroska/matroska-demux.c,v retrieving revision 1.91 retrieving revision 1.92 diff -u -d -r1.91 -r1.92 --- matroska-demux.c 11 Jul 2007 22:31:06 -0000 1.91 +++ matroska-demux.c 27 Sep 2007 15:00:30 -0000 1.92 @@ -2274,6 +2274,12 @@ 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); } |