diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-10-10 17:00:19 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-10-10 17:00:31 -0700 |
commit | 1650598e40ed96588039b73453d3a813bc7c1926 (patch) | |
tree | 57c79b022c6d75624c100e5c72b0cbd33fabd111 /binding/media-api.c | |
parent | cc0456ed42fe31edc081606d1c1c39d0703a6c05 (diff) |
binding: mediascanner: scan for local media first
Scan for local media first to allow the playlist to be
concise.
Bug-AGL: SPEC-934
Change-Id: Ic3d1b3e80fd67ac79d4d51b602754d81a2ebf903
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/media-api.c')
-rw-r--r-- | binding/media-api.c | 4 |
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(); |