mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
obs-v4l2sink: fix v4l2device_close segfault
This commit is contained in:
parent
a576482e4c
commit
f2211de99e
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, qtbase
|
||||
, obs-studio
|
||||
|
@ -20,6 +21,14 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ qtbase obs-studio ];
|
||||
|
||||
patches = [
|
||||
# Fixes the segfault when stopping the plugin
|
||||
(fetchpatch {
|
||||
url = "https://github.com/CatxFish/obs-v4l2sink/commit/6604f01796d1b84a95714730ea51a6b8ac0e450b.diff";
|
||||
sha256 = "0crcvw02dj0aqy7hnhizjdsnhiw03zmg6cbdkasxz2mrrbyc3s88";
|
||||
})
|
||||
];
|
||||
|
||||
cmakeFlags = with lib; [
|
||||
"-DLIBOBS_INCLUDE_DIR=${obs-studio.src}/libobs"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue