[gst-cvs] gst-plugins-bad: inputselector: sync with copy in -base
Stefan Kost
ensonic at kemper.freedesktop.org
Mon Sep 6 01:05:11 PDT 2010
Module: gst-plugins-bad
Branch: master
Commit: bbfff812bf3db3676c8c430c72b0b44881b8131d
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=bbfff812bf3db3676c8c430c72b0b44881b8131d
Author: Stefan Kost <ensonic at users.sf.net>
Date: Mon Sep 6 11:03:07 2010 +0300
inputselector: sync with copy in -base
Use _get_caps_reffed to avoid copies.
---
gst/selector/gstinputselector.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/selector/gstinputselector.c b/gst/selector/gstinputselector.c
index 51a33e1..514c743 100644
--- a/gst/selector/gstinputselector.c
+++ b/gst/selector/gstinputselector.c
@@ -448,7 +448,7 @@ gst_selector_pad_getcaps (GstPad * pad)
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
GST_DEBUG_OBJECT (sel, "Getting caps of srcpad peer");
- caps = gst_pad_peer_get_caps (sel->srcpad);
+ caps = gst_pad_peer_get_caps_reffed (sel->srcpad);
if (caps == NULL)
caps = gst_caps_new_any ();
@@ -1166,7 +1166,7 @@ gst_input_selector_getcaps (GstPad * pad)
GST_DEBUG_PAD_NAME (pad), GST_DEBUG_PAD_NAME (otherpad));
/* if the peer has caps, use those. If the pad is not linked, this function
* returns NULL and we return ANY */
- if (!(caps = gst_pad_peer_get_caps (otherpad)))
+ if (!(caps = gst_pad_peer_get_caps_reffed (otherpad)))
caps = gst_caps_new_any ();
gst_object_unref (otherpad);
}
More information about the Gstreamer-commits
mailing list