[PATCH] filesystem: use proper URI format instead of concat "file://"



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 src/media/filesystem/grl-filesystem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/media/filesystem/grl-filesystem.c b/src/media/filesystem/grl-filesystem.c
index d4fe60c..553e3e4 100644
--- a/src/media/filesystem/grl-filesystem.c
+++ b/src/media/filesystem/grl-filesystem.c
@@ -481,7 +481,7 @@ create_content (GrlMedia *content,
   grl_media_set_id (media,  root_dir ? NULL : path);
 
   /* URL */
-  str = g_strconcat ("file://", path, NULL);
+  str = g_file_get_uri (file);
   grl_media_set_url (media, str);
   g_free (str);
 
-- 
1.7.4.1



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