[tracker/tracker-0.6] Some small fixes to the tagreadbin gstreamer implementation.
- From: Mikael Ottela <mottela src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-0.6] Some small fixes to the tagreadbin gstreamer implementation.
- Date: Thu, 4 Jun 2009 21:43:34 -0400 (EDT)
commit 4fbca08299816ecf5e33ed21562f6799d6ae5ac2
Author: Mikael Ottela <mikael ottela ixonos com>
Date: Fri Jun 5 04:40:01 2009 +0300
Some small fixes to the tagreadbin gstreamer implementation.
---
src/tracker-extract/tracker-extract-gstreamer.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index e65945d..78f18d9 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -49,7 +49,7 @@
/* Some additional tagreadbin tags (FIXME until they are defined upstream)*/
#ifndef GST_TAG_CHANNEL
-#define GST_TAG_CHANNEL "channel"
+#define GST_TAG_CHANNEL "channels"
#endif
#ifndef GST_TAG_RATE
@@ -789,7 +789,12 @@ create_tagreadbin_pipeline (MetadataExtractor *extractor, const gchar *uri)
return NULL;
}
- complete_uri = g_build_filename ("file://", uri, NULL);
+ complete_uri = g_filename_to_uri (uri, NULL, NULL);
+ if (!complete_uri) {
+ g_warning ("Failed to convert filename to uri");
+ return NULL;
+ }
+
g_object_set (G_OBJECT (pipeline), "uri", complete_uri, NULL);
g_free (complete_uri);
return pipeline;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]