[tracker] tracker-extract-gstreamer: Fix use of tagreadbin
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract-gstreamer: Fix use of tagreadbin
- Date: Wed, 18 Nov 2009 16:07:23 +0000 (UTC)
commit 166775449c3c4172cc8b74d00fdc27645b0b57a5
Author: Jürg Billeter <j bitron ch>
Date: Wed Nov 18 16:57:01 2009 +0100
tracker-extract-gstreamer: Fix use of tagreadbin
src/tracker-extract/tracker-extract-gstreamer.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 7457728..c0c8f41 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -837,7 +837,6 @@ static GstElement *
create_tagreadbin_pipeline (MetadataExtractor *extractor, const gchar *uri)
{
GstElement *pipeline = NULL;
- gchar *complete_uri = NULL;
pipeline = gst_element_factory_make ("tagreadbin", "tagreadbin");
if (!pipeline) {
@@ -845,14 +844,7 @@ create_tagreadbin_pipeline (MetadataExtractor *extractor, const gchar *uri)
return 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);
+ g_object_set (G_OBJECT (pipeline), "uri", uri, NULL);
return pipeline;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]