ges: Give better names to nleobjects

This commit is contained in:
Thibault Saunier 2016-02-09 12:14:15 +01:00
parent c0dbfeb433
commit ef69d5f97d

View file

@ -194,6 +194,7 @@ ges_track_element_constructed (GObject * gobject)
{
GESTrackElementClass *class;
GstElement *nleobject;
gchar *tmp;
GESTrackElement *object = GES_TRACK_ELEMENT (gobject);
GST_DEBUG_OBJECT (object, "Creating NleObject");
@ -208,6 +209,11 @@ ges_track_element_constructed (GObject * gobject)
return;
}
tmp = g_strdup_printf ("%s:%s", G_OBJECT_TYPE_NAME (object),
GST_OBJECT_NAME (nleobject));
gst_object_set_name (GST_OBJECT (nleobject), tmp);
g_free (tmp);
GST_DEBUG_OBJECT (object, "Got a valid NleObject, now filling it in");
object->priv->nleobject = gst_object_ref (nleobject);
@ -511,7 +517,7 @@ _set_priority (GESTimelineElement * element, guint32 priority)
priority = MIN_NLE_PRIO;
}
GST_DEBUG ("object:%p, priority:%" G_GUINT32_FORMAT, object, priority);
GST_DEBUG_OBJECT (object, "priority:%" G_GUINT32_FORMAT, priority);
if (G_UNLIKELY (priority == _PRIORITY (object)))
return FALSE;