Skip to content

Commit

Permalink
obs-v4l2sink: fix v4l2device_close segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
louistakepillz committed Apr 25, 2020
1 parent a576482 commit f2211de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/applications/video/obs-studio/v4l2sink.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, qtbase
, obs-studio
Expand All @@ -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"
];
Expand Down

0 comments on commit f2211de

Please sign in to comment.