gst_all_1.gst-plugins-bad: 1.22.9 → 1.24.1

This commit is contained in:
Maxine Aubrey
2024-04-22 21:11:15 +02:00
parent 04001a455d
commit 8a16c9636a
2 changed files with 21 additions and 18 deletions
@@ -18,13 +18,14 @@
, opencv4
, faad2
, ldacbt
, liblc3
, libass
, libkate
, lrdf
, ladspaH
, lcms2
, libnice
, webrtc-audio-processing
, webrtc-audio-processing_1
, lilv
, lv2
, serd
@@ -110,13 +111,13 @@
stdenv.mkDerivation rec {
pname = "gst-plugins-bad";
version = "1.22.9";
version = "1.24.1";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
hash = "sha256-G8ZdD9X1OjY2Vk79P88xjD7c3sOcQQmlA8H8ggOECh0=";
hash = "sha256-8aGDlm6pE2oA8VnuQttNHRBqvvAi0bSeY/ui/L5QyPg=";
};
patches = [
@@ -148,10 +149,10 @@ stdenv.mkDerivation rec {
json-glib
lcms2
ldacbt
liblc3
libass
libkate
webrtc-audio-processing # required by webrtcdsp
#webrtc-audio-processing_1 # required by isac
webrtc-audio-processing_1 # required by isac
libbs2b
libmodplug
openjpeg
@@ -262,6 +263,7 @@ stdenv.mkDerivation rec {
"-Damfcodec=disabled" # Windows-only
"-Davtp=disabled"
"-Ddirectshow=disabled" # Windows-only
"-Dqt6d3d11=disabled"
"-Ddts=disabled" # required `libdca` library not packaged in nixpkgs as of writing, and marked as "BIG FAT WARNING: libdca is still in early development"
"-Dzbar=${if enableZbar then "enabled" else "disabled"}"
"-Dfaac=${if faacSupport then "enabled" else "disabled"}"
@@ -281,6 +283,7 @@ stdenv.mkDerivation rec {
"-Dmusepack=disabled"
"-Dopenni2=disabled" # not packaged in nixpkgs as of writing
"-Dopensles=disabled" # not packaged in nixpkgs as of writing
"-Dsvtav1=disabled" # not packaged in nixpkgs as of writing
"-Dsvthevcenc=disabled" # required `SvtHevcEnc` library not packaged in nixpkgs as of writing
"-Dteletext=disabled" # required `zvbi` library not packaged in nixpkgs as of writing
"-Dtinyalsa=disabled" # not packaged in nixpkgs as of writing
@@ -289,11 +292,11 @@ stdenv.mkDerivation rec {
"-Dwasapi=disabled" # not packaged in nixpkgs as of writing / no Windows support
"-Dwasapi2=disabled" # not packaged in nixpkgs as of writing / no Windows support
"-Dwpe=disabled" # required `wpe-webkit` library not packaged in nixpkgs as of writing
"-Disac=disabled" # depends on `webrtc-audio-coding-1` not compatible with 0.3
"-Dgs=disabled" # depends on `google-cloud-cpp`
"-Donnx=disabled" # depends on `libonnxruntime` not packaged in nixpkgs as of writing
"-Dopenaptx=enabled" # since gstreamer-1.20.1 `libfreeaptx` is supported for circumventing the dubious license conflict with `libopenaptx`
"-Dopencv=${if opencvSupport then "enabled" else "disabled"}" # Reduces rebuild size when `config.cudaSupport = true`
"-Daja=disabled" # should pass libajantv2 via aja-sdk-dir instead
"-Dmicrodns=${if microdnsSupport then "enabled" else "disabled"}"
"-Dbluez=${if bluezSupport then "enabled" else "disabled"}"
(lib.mesonEnable "doc" enableDocumentation)
@@ -1,9 +1,9 @@
diff --git a/gst-libs/gst/cuda/gstcudaloader.c b/gst-libs/gst/cuda/gstcudaloader.c
index fffcbefd2b..6f738d3af3 100644
--- a/gst-libs/gst/cuda/gstcudaloader.c
+++ b/gst-libs/gst/cuda/gstcudaloader.c
@@ -165,6 +165,11 @@ gst_cuda_load_library (void)
return TRUE;
diff --git a/gst-libs/gst/cuda/gstcudaloader.cpp b/gst-libs/gst/cuda/gstcudaloader.cpp
index 11718b8..d4144c1 100644
--- a/gst-libs/gst/cuda/gstcudaloader.cpp
+++ b/gst-libs/gst/cuda/gstcudaloader.cpp
@@ -229,6 +229,11 @@ gst_cuda_load_library_once_func (void)
"CUDA plugin loader");
module = g_module_open (filename, G_MODULE_BIND_LAZY);
+
@@ -11,14 +11,14 @@ index fffcbefd2b..6f738d3af3 100644
+ module = g_module_open ("@driverLink@/lib/" CUDA_LIBNAME, G_MODULE_BIND_LAZY);
+ }
+
if (module == NULL) {
if (module == nullptr) {
GST_WARNING ("Could not open library %s, %s", filename, g_module_error ());
return FALSE;
return;
diff --git a/sys/nvcodec/gstcuvidloader.c b/sys/nvcodec/gstcuvidloader.c
index e957e062e0..004ec2dcd5 100644
index c51a428..ea0e1b5 100644
--- a/sys/nvcodec/gstcuvidloader.c
+++ b/sys/nvcodec/gstcuvidloader.c
@@ -85,6 +85,11 @@ gst_cuvid_load_library (guint api_major_ver, guint api_minor_ver)
@@ -87,6 +87,11 @@ gst_cuvid_load_library (guint api_major_ver, guint api_minor_ver)
return TRUE;
module = g_module_open (filename, G_MODULE_BIND_LAZY);
@@ -31,10 +31,10 @@ index e957e062e0..004ec2dcd5 100644
GST_WARNING ("Could not open library %s, %s", filename, g_module_error ());
return FALSE;
diff --git a/sys/nvcodec/gstnvenc.c b/sys/nvcodec/gstnvenc.c
index 106857a954..3bab9989f0 100644
index c65c85a..57232bb 100644
--- a/sys/nvcodec/gstnvenc.c
+++ b/sys/nvcodec/gstnvenc.c
@@ -907,6 +907,11 @@ gst_nvenc_load_library (guint * api_major_ver, guint * api_minor_ver)
@@ -919,6 +919,11 @@ gst_nvenc_load_library (guint * api_major_ver, guint * api_minor_ver)
};
module = g_module_open (NVENC_LIBRARY_NAME, G_MODULE_BIND_LAZY);