mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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.
This commit is contained in:
parent
bd9dc3604f
commit
103d810e2c
1 changed files with 11 additions and 3 deletions
|
@ -1345,6 +1345,13 @@ element_has_connection_with_group (GstElement *element, GstOptSchedulerGroup *gr
|
||||||
|
|
||||||
/* see in what group this element is */
|
/* see in what group this element is */
|
||||||
parent = GST_PAD_PARENT (GST_PAD_PEER (pad));
|
parent = GST_PAD_PARENT (GST_PAD_PEER (pad));
|
||||||
|
|
||||||
|
/* 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);
|
get_group (parent, &parentgroup);
|
||||||
|
|
||||||
/* if it's in the same group, we're still connected */
|
/* if it's in the same group, we're still connected */
|
||||||
|
@ -1352,6 +1359,7 @@ element_has_connection_with_group (GstElement *element, GstOptSchedulerGroup *gr
|
||||||
connected = TRUE;
|
connected = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return connected;
|
return connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue