aboutsummaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-10-06 16:21:30 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-10-06 16:21:30 -0700
commit1fe7b9363da7f5cac0641b7ecea249fdcca23970 (patch)
treeea7ad961a94c844d527a2913d7427e97b363263c /binding
parent47593c4e5a71a95fb5ee9824e7bef8bf31d4f41f (diff)
binding: mediascanner: correct local paths returned
Local paths filenames weren't included in JSON output. Change-Id: I060886acdd7d890fd81b5164a131b95dd498eb2e Bug-AGL: SPEC-924 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding')
-rw-r--r--binding/media-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/media-manager.c b/binding/media-manager.c
index d451b3d..5fee748 100644
--- a/binding/media-manager.c
+++ b/binding/media-manager.c
@@ -99,7 +99,7 @@ GList* media_local_scan(GList *list)
while ((tmp = (gchar *) g_dir_read_name(dir)) != NULL)
{
struct Media_Item *item = g_malloc0(sizeof(*item));
- item->path = g_strdup_printf("file://%s", path);
+ item->path = g_strdup_printf("file://%s/%s", path, tmp);
list = g_list_append(list, item);
}