summaryrefslogtreecommitdiffstats
path: root/binding/media-api.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-12-07 17:57:38 -0800
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-12-13 21:36:43 +0000
commit33850f0e8b2e87675d29f84850123465ec931036 (patch)
treec2bd201c71f65e3e6954ad2d3f20493e32103de2 /binding/media-api.c
parent08013b90239fbfd4e49c5c121fed423b6a12e449 (diff)
binding: mediascanner: add video scan from lightmediascannereel_5.0.0eel_4.99.5eel/5.0.0eel/4.99.55.0.04.99.5
Add to the playlist the video media found from the lightmediascanner database. Bug-AGL: SPEC-1169 Change-Id: I9ebf2e21805fe0e59a853dd081eacf02af501c96 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/media-api.c')
-rw-r--r--binding/media-api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/binding/media-api.c b/binding/media-api.c
index ae22fb1..892f67d 100644
--- a/binding/media-api.c
+++ b/binding/media-api.c
@@ -126,11 +126,12 @@ static json_object *new_json_object_from_device(GList *list)
static void media_results_get (struct afb_req request)
{
- GList *list;
+ GList *list = NULL;
json_object *jresp = NULL;
ListLock();
- list = media_lightmediascanner_scan(list, NULL);
+ list = media_lightmediascanner_scan(list, NULL, LMS_AUDIO_SCAN);
+ list = media_lightmediascanner_scan(list, NULL, LMS_VIDEO_SCAN);
if (list == NULL) {
afb_req_fail(request, "failed", "media scan error");
ListUnlock();