Commit 103d810e authored by Wim Taymans's avatar Wim Taymans

Decoupled elements needs special case when we look for grouped elements.

Original commit message from CVS:
Decoupled elements needs special case when we look for grouped elements.
parent bd9dc360
......@@ -1345,11 +1345,19 @@ element_has_connection_with_group (GstElement *element, GstOptSchedulerGroup *gr
/* see in what group this element is */
parent = GST_PAD_PARENT (GST_PAD_PEER (pad));
get_group (parent, &parentgroup);
/* if it's in the same group, we're still connected */
if (parentgroup == group)
/* connections with decoupled elements are valid */
if (GST_ELEMENT_IS_DECOUPLED (parent)) {
connected = TRUE;
}
else {
/* for non-decoupled elements we need to check the group */
get_group (parent, &parentgroup);
/* if it's in the same group, we're still connected */
if (parentgroup == group)
connected = TRUE;
}
}
}
return connected;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment