This is all a quick hack...
authorWim Taymans <wim.taymans@gmail.com>
Sun, 14 Apr 2002 13:39:15 +0000 (13:39 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 14 Apr 2002 13:39:15 +0000 (13:39 +0000)
Original commit message from CVS:
This is all a quick hack...

gst/gstparse.c

index 6b8c789..c3e273a 100644 (file)
@@ -77,7 +77,7 @@ dynamic_connect (GstElement * element, GstPad * newpad, gpointer data)
       return;
     }
   }
-  if (!GST_PAD_IS_CONNECTED (dc->target_pad)) {
+  if (!GST_PAD_IS_CONNECTED (dc->target_pad) && !GST_PAD_IS_CONNECTED (newpad)) {
     gst_element_set_state (dc->pipeline, GST_STATE_PAUSED);
     if (!gst_pad_connect (newpad, dc->target_pad) && warn) {
       g_warning ("could not connect %s:%s to %s:%s", GST_DEBUG_PAD_NAME (newpad),