[tracker/gst-geolocation] tracker-extract-gstreamer, gupnp-dlna: Added debugging to show backend



commit 309eace899512f6878773f0ae881ccf9008e8243
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Aug 16 17:00:21 2011 +0100

    tracker-extract-gstreamer, gupnp-dlna: Added debugging to show backend

 src/tracker-extract/tracker-extract-gstreamer.c  |    7 +++++++
 src/tracker-extract/tracker-extract-gupnp-dlna.c |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 2c0cca0..f6bf5df 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -414,6 +414,8 @@ add_geolocation_tags (TrackerSparqlBuilder *metadata,
 	gdouble lat, lon, alt;
 	gboolean has_coords;
 
+	g_debug ("Retriving geolocation...");
+
 	country = city = sublocation = NULL;
 	has_coords = (gst_tag_list_get_double (tag_list, GST_TAG_GEO_LOCATION_LATITUDE, &lat) &&
 		      gst_tag_list_get_double (tag_list, GST_TAG_GEO_LOCATION_LONGITUDE, &lon) &&
@@ -1652,13 +1654,18 @@ tracker_extract_gstreamer (const gchar          *uri,
 	extractor->album_art_size = 0;
 	extractor->album_art_mime = NULL;
 
+	g_debug ("GStreamer backend in use:");
+
 #if defined(GSTREAMER_BACKEND_TAGREADBIN)
+	g_debug ("  Tagreadbin");
 	if (!tagreadbin_init_and_run (extractor, uri))
 		return;
 #elif defined(GSTREAMER_BACKEND_DECODEBIN2)
+	g_debug ("  Decodebin2");
 	if (!decodebin2_init_and_run (extractor, uri))
 		return;
 #else /* DISCOVERER/GUPnP-DLNA */
+	g_debug ("  Discoverer/GUPnp-DLNA");
 	if (!discoverer_init_and_run (extractor, uri))
 		return;
 #endif
diff --git a/src/tracker-extract/tracker-extract-gupnp-dlna.c b/src/tracker-extract/tracker-extract-gupnp-dlna.c
index 6f11a55..163a770 100644
--- a/src/tracker-extract/tracker-extract-gupnp-dlna.c
+++ b/src/tracker-extract/tracker-extract-gupnp-dlna.c
@@ -261,6 +261,8 @@ add_geolocation_tags (TrackerSparqlBuilder *metadata,
 	gdouble lat, lon, alt;
 	gboolean has_coords;
 
+	g_debug ("Retriving geolocation...");
+
 	country = city = sublocation = NULL;
 	has_coords = (gst_tag_list_get_double (tag_list, GST_TAG_GEO_LOCATION_LATITUDE, &lat) &&
 		      gst_tag_list_get_double (tag_list, GST_TAG_GEO_LOCATION_LONGITUDE, &lon) &&



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]