From bc8c7093035f3e6e78e385d9cdc8254eee945d68 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 16 Dec 2011 09:54:58 +0100 Subject: [PATCH] ges: Some debug logging enhancements --- ges/ges-timeline.c | 9 ++++++++- ges/ges-track-object.c | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 004e12340f..1ba8508110 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -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) { diff --git a/ges/ges-track-object.c b/ges/ges-track-object.c index f5ce464ef6..534c7c4b0e 100644 --- a/ges/ges-track-object.c +++ b/ges/ges-track-object.c @@ -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; } -- 2.34.1