summaryrefslogtreecommitdiffstats
path: root/binding/media-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/media-api.c')
-rw-r--r--binding/media-api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/media-api.c b/binding/media-api.c
index fb0145f..82447b3 100644
--- a/binding/media-api.c
+++ b/binding/media-api.c
@@ -130,8 +130,8 @@ static void media_results_get (struct afb_req request)
json_object *jresp = NULL;
ListLock();
- list = media_lightmediascanner_scan(NULL);
- list = media_local_scan(list);
+ list = media_local_scan(NULL);
+ list = media_lightmediascanner_scan(list, NULL);
if (list == NULL) {
afb_req_fail(request, "failed", "media scan error");
ListUnlock();