summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2008-09-29 15:03:05 -0400
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:55 +0100
commit363861fac6f16c3a517ed29a36b7a9a6986f87c3 (patch)
tree0d099aa06ed93f4a026f66d2e88f55261ce43201 /gst
parent9609426eda2d87f245e94788a043bae5ca0ab49a (diff)
downloadgst-plugins-bad-363861fac6f16c3a517ed29a36b7a9a6986f87c3.tar.gz
gst-plugins-bad-363861fac6f16c3a517ed29a36b7a9a6986f87c3.tar.bz2
gst-plugins-bad-363861fac6f16c3a517ed29a36b7a9a6986f87c3.zip
[MOVED FROM GST-P-FARSIGHT] Don't unref caps we don't know (thanks Wim)
Diffstat (limited to 'gst')
-rw-r--r--gst/rtpmux/gstrtpmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 01e0e0f7..ba7243e1 100644
--- a/gst/rtpmux/gstrtpmux.c
+++ b/gst/rtpmux/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);