From 7c1ff54774b48b866b7da124f703fff274605b14 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Sat, 26 Dec 2020 14:55:47 -0500 Subject: [PATCH] Help finding modinfo, Closes: #977928 --- debian/patches/0009-v4l2loopback.patch | 16 ++++++++++++++++ debian/patches/series | 1 + 2 files changed, 17 insertions(+) create mode 100644 debian/patches/0009-v4l2loopback.patch diff --git a/debian/patches/0009-v4l2loopback.patch b/debian/patches/0009-v4l2loopback.patch new file mode 100644 index 0000000..2f5310e --- /dev/null +++ b/debian/patches/0009-v4l2loopback.patch @@ -0,0 +1,16 @@ +From: gregor herrmann +Subject: obs-studio: virtual camera not working, modinfo not in path +Date: Wed, 23 Dec 2020 01:22:56 +0100 +Bug-Debian: https://bugs.debian.org/977928 + +--- a/plugins/linux-v4l2/linux-v4l2.c ++++ b/plugins/linux-v4l2/linux-v4l2.c +@@ -31,7 +31,7 @@ + { + bool loaded = false; + +- int ret = system("modinfo v4l2loopback >/dev/null 2>&1"); ++ int ret = system("PATH=$PATH:/sbin modinfo v4l2loopback >/dev/null 2>&1"); + + if (ret == 0) + loaded = true; diff --git a/debian/patches/series b/debian/patches/series index b8d40ca..9678a15 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ 0006-Add-SONAME.patch 0007-Do-not-build-with-SSE2-enabled-on-i386.patch 0008-Use-the-simd-everywhere-headers-from-libsimde-dev.patch +0009-v4l2loopback.patch