gst/audiorate/gstaudiorate.c: Make the metadata of the buffer writable before changin...
authorWim Taymans <wim.taymans@gmail.com>
Mon, 28 Aug 2006 16:17:13 +0000 (16:17 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 28 Aug 2006 16:17:13 +0000 (16:17 +0000)
Original commit message from CVS:
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_sink_event),
(gst_audio_rate_chain):
Make the metadata of the buffer writable before changing its
flags.

ChangeLog
gst/audiorate/gstaudiorate.c

index 6c7c843..0550361 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2006-08-28  Wim Taymans  <wim@fluendo.com>
 
+       * gst/audiorate/gstaudiorate.c: (gst_audio_rate_sink_event),
+       (gst_audio_rate_chain):
+       Make the metadata of the buffer writable before changing its
+       flags.
+
+2006-08-28  Wim Taymans  <wim@fluendo.com>
+
        * gst/audiorate/gstaudiorate.c: (gst_audio_rate_reset),
        (gst_audio_rate_setcaps), (gst_audio_rate_init),
        (gst_audio_rate_sink_event), (gst_audio_rate_src_event),
index 30d2b4b..8194cac 100644 (file)
@@ -501,6 +501,7 @@ gst_audio_rate_chain (GstPad * pad, GstBuffer * buf)
   if (audiorate->discont) {
     /* we need to output a discont buffer, do so now */
     GST_DEBUG_OBJECT (audiorate, "marking DISCONT on output buffer");
+    buf = gst_buffer_make_metadata_writable (buf);
     GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
     audiorate->discont = FALSE;
   } else if (GST_BUFFER_IS_DISCONT (buf)) {