From 494303c263ced45600c50f6a9d02163f9b271ddb Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 18 Jul 2014 04:04:16 +0200 Subject: [PATCH] object: make the check for self commit work in a crappy way. --- gnl/gnlobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnl/gnlobject.c b/gnl/gnlobject.c index 5a7e3a8..be02c53 100644 --- a/gnl/gnlobject.c +++ b/gnl/gnlobject.c @@ -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 * sure that the object positioning state is properly commited */ 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))) { - GST_DEBUG ("Adding gnlobject to something that is not a composition," + GST_INFO ("Adding gnlobject to something that is not a composition," " commiting ourself"); gnl_object_commit (GNL_OBJECT (element), FALSE); } -- 2.7.4