ges: Enhance some debug logging

Also make sure not to warn when it shouldn't
This commit is contained in:
Thibault Saunier 2011-11-30 21:47:54 -03:00
parent 82974d9a9d
commit a9193def76
2 changed files with 4 additions and 2 deletions

View 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);

View 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)))) {