Commit 9838aef9 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent 3b3f1166
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),
......
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment