wtay's fixes

Original commit message from CVS:
wtay's fixes
This commit is contained in:
Thomas Vander Stichele 2002-04-14 13:57:03 +00:00
parent 68f29e3ed5
commit 2f310eb2f3

View 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),