ges: Some debug logging enhancements

This commit is contained in:
Thibault Saunier 2011-12-16 09:54:58 +01:00
parent ef96f26e8a
commit bc8c709303
2 changed files with 12 additions and 1 deletions

View file

@ -509,7 +509,12 @@ discoverer_discovered_cb (GstDiscoverer * discoverer,
GESTimelinePrivate *priv = timeline->priv;
const gchar *uri = gst_discoverer_info_get_uri (info);
GST_DEBUG ("Discovered uri %s", uri);
if (err) {
GST_WARNING ("Error while discovering %s: %s", uri, err->message);
return;
} else
GST_DEBUG ("Discovered uri %s", uri);
GES_TIMELINE_PENDINGOBJS_LOCK (timeline);
@ -1165,6 +1170,8 @@ ges_timeline_enable_update (GESTimeline * timeline, gboolean enabled)
GList *tmp, *tracks;
gboolean res = TRUE;
GST_DEBUG_OBJECT (timeline, "%s updates", enabled ? "Enabling" : "Disabling");
tracks = ges_timeline_get_tracks (timeline);
for (tmp = tracks; tmp; tmp = tmp->next) {

View file

@ -888,6 +888,10 @@ ges_track_object_get_element (GESTrackObject * object)
void
ges_track_object_set_locked (GESTrackObject * object, gboolean locked)
{
g_return_if_fail (GES_IS_TRACK_OBJECT (object));
GST_DEBUG_OBJECT (object, "%s object", locked ? "Locking" : "Unlocking");
object->priv->locked = locked;
}