From 5cbb0de82305ec0c615aae8475c1156c6c376d9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 29 Sep 2008 15:03:05 -0400 Subject: [PATCH] rtpmux: Don't unref caps we don't know (thanks Wim) --- gst/rtpmanager/gstrtpmux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpmux.c b/gst/rtpmanager/gstrtpmux.c index 01e0e0f..ba7243e 100644 --- a/gst/rtpmanager/gstrtpmux.c +++ b/gst/rtpmanager/gstrtpmux.c @@ -424,7 +424,7 @@ gst_rtp_mux_setcaps (GstPad *pad, GstCaps *caps) padpriv->have_base = TRUE; } - caps = gst_caps_make_writable (caps); + caps = gst_caps_copy (caps); gst_caps_set_simple (caps, "clock-base", G_TYPE_UINT, rtp_mux->ts_base, @@ -434,6 +434,7 @@ gst_rtp_mux_setcaps (GstPad *pad, GstCaps *caps) GST_DEBUG_OBJECT (rtp_mux, "setting caps %" GST_PTR_FORMAT " on src pad..", caps); ret = gst_pad_set_caps (rtp_mux->srcpad, caps); + gst_caps_unref (caps); out: gst_object_unref (rtp_mux); -- 2.7.4