small fix
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 1 Oct 2002 13:03:23 +0000 (13:03 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 1 Oct 2002 13:03:23 +0000 (13:03 +0000)
Original commit message from CVS:
small fix

gst/autoplug/gstsearchfuncs.c

index 0a67221..e028d26 100644 (file)
@@ -117,8 +117,7 @@ gst_autoplug_can_connect_sink (GstElementFactory *fac, GstCaps *sink)
   {
     GstCaps *caps = GST_PAD_TEMPLATE_CAPS (templs->data);
     if ((GST_PAD_TEMPLATE_DIRECTION (templs->data) == GST_PAD_SRC) &&
-       gst_autoplug_caps_intersect (GST_PAD_TEMPLATE_CAPS (templs->data), 
-                                    sink))
+       gst_autoplug_caps_intersect (caps, sink))
     {
       return GST_PAD_TEMPLATE (templs->data);
     }