pad: Only do the subset check in gst_pad_accept_caps() if the pad claims to accept...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 9 Sep 2011 10:56:20 +0000 (12:56 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 9 Sep 2011 10:56:20 +0000 (12:56 +0200)
gst/gstpad.c

index 4c0b8e9..c501669 100644 (file)
@@ -2612,7 +2612,7 @@ gst_pad_accept_caps (GstPad * pad, GstCaps * caps)
   }
 
 #ifndef G_DISABLE_ASSERT
-  {
+  if (result) {
     GstCaps *padcaps;
 
     padcaps = gst_pad_get_caps_reffed (pad);