object: make the check for self commit work in a crappy way.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 18 Jul 2014 02:04:16 +0000 (04:04 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 31 Oct 2014 10:58:11 +0000 (11:58 +0100)
gnl/gnlobject.c

index 5a7e3a8..be02c53 100644 (file)
@@ -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);
         }