From 8b93746b7890be875fb42ca2eb4c4e3b20ca4534 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 5 Nov 2009 13:12:19 +0100 Subject: [PATCH] inputselector: use _get_caps_reffed() --- gst/playback/gstinputselector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/playback/gstinputselector.c b/gst/playback/gstinputselector.c index 8a71a24..7656986 100644 --- a/gst/playback/gstinputselector.c +++ b/gst/playback/gstinputselector.c @@ -456,7 +456,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 (); @@ -1194,7 +1194,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); } -- 2.7.4