decodebin2: Break the double-factory checking loop immediately if the factory was...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 26 Feb 2011 22:43:39 +0000 (23:43 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 26 Feb 2011 22:43:39 +0000 (23:43 +0100)
gst/playback/gstdecodebin2.c

index 339ec91..7b8fbc2 100644 (file)
@@ -1692,7 +1692,7 @@ connect_pad (GstDecodeBin * dbin, GstElement * src, GstDecodePad * dpad,
 
       if (gst_element_get_factory (otherelement) == factory) {
         skip = TRUE;
-        continue;
+        break;
       }
     }
     CHAIN_MUTEX_UNLOCK (chain);