ges: Enhance some debug logging
authorThibault Saunier <thibault.saunier@collabora.com>
Thu, 1 Dec 2011 00:47:54 +0000 (21:47 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Wed, 11 Jan 2012 14:56:16 +0000 (11:56 -0300)
Also make sure not to warn when it shouldn't

ges/ges-timeline-object.c
ges/ges-track.c

index 45208c5f92abc9c40684d76801bbbe6629db7b6b..f4c3334e44b2f45b26ee643b605aac784459e201 100644 (file)
@@ -444,7 +444,7 @@ ges_timeline_object_create_track_objects_func (GESTimelineObject * object,
 
   result = ges_timeline_object_create_track_object (object, track);
   if (!result) {
-    GST_WARNING ("couldn't create track object");
+    GST_DEBUG ("Did not create track object");
     return FALSE;
   }
   ges_track_object_set_timeline_object (result, object);
index 4d7b69eb68f0711f81a5680f2f18172c9ad75f53..2e481f3f90a014f50a80a551a284592b8e596669 100644 (file)
@@ -456,7 +456,9 @@ ges_track_add_object (GESTrack * track, GESTrackObject * object)
     return FALSE;
   }
 
-  GST_DEBUG ("Adding object to ourself");
+  GST_DEBUG ("Adding object %s to ourself %s",
+      GST_OBJECT_NAME (ges_track_object_get_gnlobject (object)),
+      GST_OBJECT_NAME (track->priv->composition));
 
   if (G_UNLIKELY (!gst_bin_add (GST_BIN (track->priv->composition),
               ges_track_object_get_gnlobject (object)))) {