Revert "inputselector: use get_caps_reffed()"
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 5 Nov 2009 12:53:46 +0000 (13:53 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:54:04 +0000 (00:54 +0000)
This reverts commit 49ec4f796a0e3f88a851708782c853baf4b05724.

We can't use this new function yet.

plugins/elements/gstinputselector.c

index 693e9ef..8d6a416 100644 (file)
@@ -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_reffed (sel->srcpad);
+  caps = gst_pad_peer_get_caps (sel->srcpad);
   if (caps == NULL)
     caps = gst_caps_new_any ();
 
@@ -1192,7 +1192,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_reffed (otherpad)))
+    if (!(caps = gst_pad_peer_get_caps (otherpad)))
       caps = gst_caps_new_any ();
     gst_object_unref (otherpad);
   }