From 9838aef96c22ce9bb6ee8eb5094b273c7eb8d813 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 28 Aug 2006 16:17:13 +0000 Subject: [PATCH] gst/audiorate/gstaudiorate.c: Make the metadata of the buffer writable before changing its flags. 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 | 7 +++++++ gst/audiorate/gstaudiorate.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6c7c8437ce..0550361868 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-08-28 Wim Taymans + + * 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 * gst/audiorate/gstaudiorate.c: (gst_audio_rate_reset), diff --git a/gst/audiorate/gstaudiorate.c b/gst/audiorate/gstaudiorate.c index 30d2b4b1df..8194cacbcc 100644 --- a/gst/audiorate/gstaudiorate.c +++ b/gst/audiorate/gstaudiorate.c @@ -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)) {