mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
object: make the check for self commit work in a crappy way.
This commit is contained in:
parent
baa7863da6
commit
494303c263
1 changed files with 2 additions and 2 deletions
|
@ -568,9 +568,9 @@ gnl_object_change_state (GstElement * element, GstStateChange transition)
|
||||||
/* Going to READY and if we are not in a composition, we need to make
|
/* Going to READY and if we are not in a composition, we need to make
|
||||||
* sure that the object positioning state is properly commited */
|
* sure that the object positioning state is properly commited */
|
||||||
if (parent) {
|
if (parent) {
|
||||||
if (!GNL_OBJECT_IS_COMPOSITION (parent) &&
|
if (g_strcmp0 (gst_element_get_name (GST_ELEMENT (parent)), "current-bin") &&
|
||||||
!GNL_OBJECT_IS_COMPOSITION (GNL_OBJECT (element))) {
|
!GNL_OBJECT_IS_COMPOSITION (GNL_OBJECT (element))) {
|
||||||
GST_DEBUG ("Adding gnlobject to something that is not a composition,"
|
GST_INFO ("Adding gnlobject to something that is not a composition,"
|
||||||
" commiting ourself");
|
" commiting ourself");
|
||||||
gnl_object_commit (GNL_OBJECT (element), FALSE);
|
gnl_object_commit (GNL_OBJECT (element), FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue