[tracker/rss-enclosures] tracker-extract: Fixed xine, mplayer and totem backends



commit 081aaab3e3a902ccab1db9ab385db651e46fd7b8
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Sep 2 12:44:12 2010 +0100

    tracker-extract: Fixed xine, mplayer and totem backends
    
    Were calling old APIs that no longer exist or that have been updated

 src/tracker-extract/tracker-extract-libxine.c |    2 +-
 src/tracker-extract/tracker-extract-mplayer.c |    4 ++--
 src/tracker-extract/tracker-extract-totem.c   |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-libxine.c b/src/tracker-extract/tracker-extract-libxine.c
index 8b65598..27ab642 100644
--- a/src/tracker-extract/tracker-extract-libxine.c
+++ b/src/tracker-extract/tracker-extract-libxine.c
@@ -238,7 +238,7 @@ tracker_extract_xine (const gchar          *uri,
 		tracker_sparql_builder_object_unvalidated (metadata, title);
 	}
 
-	year = tracker_extract_guess_date (xine_get_meta_info (stream, XINE_META_INFO_YEAR));
+	year = tracker_date_guess (xine_get_meta_info (stream, XINE_META_INFO_YEAR));
 	if (year) {
 		tracker_sparql_builder_predicate (metadata, "nie:contentCreated");
 		tracker_sparql_builder_object_unvalidated (metadata, year);
diff --git a/src/tracker-extract/tracker-extract-mplayer.c b/src/tracker-extract/tracker-extract-mplayer.c
index 98077c8..9e0b207 100644
--- a/src/tracker-extract/tracker-extract-mplayer.c
+++ b/src/tracker-extract/tracker-extract-mplayer.c
@@ -129,7 +129,7 @@ extract_mplayer (const gchar          *uri,
 	argv[8] = g_filename_from_uri (uri, NULL, NULL);
 	argv[9] = NULL;
 
-	if (tracker_spawn (argv, 10, &mplayer, NULL)) {
+	if (tracker_spawn (argv, 10, &mplayer, NULL, NULL)) {
 		GPatternSpec  *pattern_ID_AUDIO_ID;
 		GPatternSpec  *pattern_ID_VIDEO_ID;
 		GPatternSpec  *pattern_ID_AUDIO;
@@ -211,7 +211,7 @@ extract_mplayer (const gchar          *uri,
 								equal_char_pos = strchr (next_line, '=');
 
 								if (g_strcmp0 (info_tags[i][0], "Year") == 0)
-									data = tracker_extract_guess_date (equal_char_pos + 1);
+									data = tracker_date_guess (equal_char_pos + 1);
 								else
 									data = g_strdup (equal_char_pos + 1);
 
diff --git a/src/tracker-extract/tracker-extract-totem.c b/src/tracker-extract/tracker-extract-totem.c
index 8c4e755..4e90b59 100644
--- a/src/tracker-extract/tracker-extract-totem.c
+++ b/src/tracker-extract/tracker-extract-totem.c
@@ -84,7 +84,7 @@ extract_totem (const gchar          *uri,
 	                                      (GDestroyNotify) g_free,
 	                                      (GDestroyNotify) g_free);
 
-	if (tracker_spawn (argv, 10, &totem, NULL)) {
+	if (tracker_spawn (argv, 10, &totem, NULL, NULL)) {
 		gchar **lines, **line;
 		gchar *artist = NULL, *album = NULL;
 		gchar *artist_uri = NULL, *album_uri = NULL;



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