From 8bf55dd42dd50f4340d52ab4528c150ad1187f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Fri, 12 Sep 2014 18:55:47 +0300 Subject: [PATCH] v4l2: detect and use the Sundtek driver --- modules/access/v4l2/lib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/access/v4l2/lib.c b/modules/access/v4l2/lib.c index f33edf1e1d..b212e1bc5f 100644 --- a/modules/access/v4l2/lib.c +++ b/modules/access/v4l2/lib.c @@ -52,7 +52,11 @@ int (*v4l2_munmap) (void *, size_t) = munmap; __attribute__((constructor)) static void v4l2_lib_load (void) { - void *h = dlopen ("libv4l2.so.0", RTLD_LAZY | RTLD_LOCAL); + void *h; + + h = dlopen ("libmediaclient.so", RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); + if (h == NULL) + h = dlopen ("libv4l2.so.0", RTLD_LAZY | RTLD_LOCAL); if (h == NULL) return;