[0.11] gst-plugins-ugly: rdtdepay: make buffer metadata writable before setting caps on it

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 06:17:26 PST 2012


Module: gst-plugins-ugly
Branch: 0.11
Commit: 15cd0c5e36001bf3b7496f2ed8197aaa1526caf4
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=15cd0c5e36001bf3b7496f2ed8197aaa1526caf4

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Fri Dec  9 15:25:21 2011 +0000

rdtdepay: make buffer metadata writable before setting caps on it

Fixes issue when the header buffer is being pushed, which was taken
from the caps and is therefore not writable.

---

 gst/realmedia/rdtdepay.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gst/realmedia/rdtdepay.c b/gst/realmedia/rdtdepay.c
index cf2289c..c4b9007 100644
--- a/gst/realmedia/rdtdepay.c
+++ b/gst/realmedia/rdtdepay.c
@@ -292,6 +292,7 @@ gst_rdt_depay_push (GstRDTDepay * rdtdepay, GstBuffer * buffer)
     rdtdepay->need_newsegment = FALSE;
   }
 
+  buffer = gst_buffer_make_metadata_writable (buffer);
   gst_buffer_set_caps (buffer, GST_PAD_CAPS (rdtdepay->srcpad));
 
   if (rdtdepay->discont) {



More information about the gstreamer-commits mailing list