[vlc-commits] v4l2: detect and use the Sundtek driver

Rémi Denis-Courmont git at videolan.org
Fri Sep 12 20:09:19 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 12 18:55:47 2014 +0300| [8bf55dd42dd50f4340d52ab4528c150ad1187f93] | committer: Rémi Denis-Courmont

v4l2: detect and use the Sundtek driver

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8bf55dd42dd50f4340d52ab4528c150ad1187f93
---

 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 f33edf1..b212e1b 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;
 



More information about the vlc-commits mailing list