projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9609426
)
[MOVED FROM GST-P-FARSIGHT] Don't unref caps we don't know (thanks Wim)
author
Olivier CrĂȘte
<olivier.crete@collabora.co.uk>
Mon, 29 Sep 2008 19:03:05 +0000
(15:03 -0400)
committer
Edward Hervey
<bilboed@bilboed.com>
Sat, 21 Feb 2009 16:48:55 +0000
(17:48 +0100)
gst/rtpmux/gstrtpmux.c
patch
|
blob
|
history
diff --git
a/gst/rtpmux/gstrtpmux.c
b/gst/rtpmux/gstrtpmux.c
index
01e0e0f
..
ba7243e
100644
(file)
--- 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);