bin: let the pad clean up in activate
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 6 May 2011 14:11:18 +0000 (16:11 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 6 May 2011 15:39:08 +0000 (17:39 +0200)
gst/gstbin.c

index 9abc509..487745e 100644 (file)
@@ -2237,8 +2237,6 @@ activate_pads (const GValue * vpad, GValue * ret, gboolean * active)
 
   if (!(cont = gst_pad_set_active (pad, *active)))
     g_value_set_boolean (ret, FALSE);
-  else if (!*active)
-    gst_pad_set_caps (pad, NULL);
 
   /* unref the object that was reffed for us by _fold */
   return cont;