openbsd-ports/x11/vlc/patches/patch-modules_access_v4l2_lib_c
ajacoutot 3371525a15 Major update to vlc-3.0.8.
Committing early in the release cycle to be able to fix regressions.

from Brad (maintainer)
2019-12-01 22:44:13 +00:00

20 lines
583 B
Plaintext

$OpenBSD: patch-modules_access_v4l2_lib_c,v 1.2 2019/12/01 22:44:13 ajacoutot Exp $
Linux driver doesn't exist on OpenBSD and adjust dlopen() use
for OpenBSD.
Index: modules/access/v4l2/lib.c
--- modules/access/v4l2/lib.c.orig
+++ modules/access/v4l2/lib.c
@@ -54,9 +54,7 @@ static void v4l2_lib_load (void)
{
void *h;
- h = dlopen ("libmediaclient.so", RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD);
- if (h == NULL)
- h = dlopen ("libv4l2.so.0", RTLD_LAZY | RTLD_LOCAL);
+ h = dlopen ("libv4l2.so", RTLD_LAZY | RTLD_LOCAL);
if (h == NULL)
return;