[tracker/tracker-0.8] tracker-extract: Fixed xine, mplayer and totem backends
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] tracker-extract: Fixed xine, mplayer and totem backends
- Date: Thu, 2 Sep 2010 12:11:35 +0000 (UTC)
commit 3fc053566805deac7e3ad535b1fb345e689deeca
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 316c495..9afceaa 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 34896a6..cecbdb2 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 f5346fd..eaf3357 100644
--- a/src/tracker-extract/tracker-extract-totem.c
+++ b/src/tracker-extract/tracker-extract-totem.c
@@ -85,7 +85,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]