gst-editing-services: ges: Some debug logging enhancements

Thibault Saunier tsaunier at kemper.freedesktop.org
Wed Jan 11 07:04:34 PST 2012


Module: gst-editing-services
Branch: master
Commit: bc8c7093035f3e6e78e385d9cdc8254eee945d68
URL:    http://cgit.freedesktop.org/gstreamer/gst-editing-services/commit/?id=bc8c7093035f3e6e78e385d9cdc8254eee945d68

Author: Thibault Saunier <thibault.saunier at collabora.com>
Date:   Fri Dec 16 09:54:58 2011 +0100

ges: Some debug logging enhancements

---

 ges/ges-timeline.c     |    9 ++++++++-
 ges/ges-track-object.c |    4 ++++
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c
index 004e123..1ba8508 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 f5ce464..534c7c4 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;
 }
 



More information about the gstreamer-commits mailing list