git » mlt.git » commit db47f55

Fix crash (FS#78414)

author Antonio Rojas
2023-05-05 13:23:32 UTC
committer Antonio Rojas
2023-05-05 13:23:32 UTC
parent 19e42954885f360106bd2c49c27883aa20b8a1b6

Fix crash (FS#78414)

67d5efd0.patch +15 -0
PKGBUILD +6 -3

diff --git a/67d5efd0.patch b/67d5efd0.patch
new file mode 100644
index 0000000..bb4487b
--- /dev/null
+++ b/67d5efd0.patch
@@ -0,0 +1,15 @@
+diff --git a/src/modules/plus/producer_count.c b/src/modules/plus/producer_count.c
+index 9ef4fbcf..0126b134 100644
+--- a/src/modules/plus/producer_count.c
++++ b/src/modules/plus/producer_count.c
+@@ -638,8 +638,9 @@ mlt_producer producer_count_init( mlt_profile profile, mlt_service_type type, co
+ 		mlt_properties_set( properties, "sound", "none" );
+ 		mlt_properties_set( properties, "background", "clock" );
+ 		mlt_properties_set( properties, "drop", "0" );
++		mlt_properties_clear( properties, "resource" );
+ 		// Let the arg specify the producer to use with the factory, e.g. loader-nogl
+-		if (arg && strcmp(arg, "") && strcmp(arg, "<producer>"))
++		if (arg && strcmp(arg, ""))
+ 			mlt_properties_set(properties, FACTORY_PRODUCER, arg);
+ 
+ 		// Callback registration
diff --git a/PKGBUILD b/PKGBUILD
index b2a3b2b..4478538 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
 
 pkgname=mlt
 pkgver=7.14.0
-pkgrel=7
+pkgrel=8
 pkgdesc='An open source multimedia framework'
 arch=(x86_64)
 url='https://www.mltframework.org'
@@ -36,12 +36,15 @@ optdepends=('sdl_image: SDL1 plugin'
 makedepends=(cmake ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg qt6-svg qt6-5compat
              jack libexif python swig movit eigen opencv rubberband gdk-pixbuf2 pango rtaudio imagemagick)
 source=(https://github.com/mltframework/mlt/releases/download/v$pkgver/mlt-$pkgver.tar.gz
-        01ab0f45.patch)
+        01ab0f45.patch
+        67d5efd0.patch)
 sha256sums=('3a7e83ed5e30f3f2d073d172c9d886310d8a73dbd2ee850ad44e3c43a9ab6394'
-            '51c10de5b683442c7a0b202627f01ca80fbf6d52170c6b3b4e1dcaa27ef59e50')
+            '51c10de5b683442c7a0b202627f01ca80fbf6d52170c6b3b4e1dcaa27ef59e50'
+            'ca74d312c5e967475bbd5f0e97cb46391d1088f56d169720c2cba80fe5b8e5b9')
 
 prepare() {
   patch -d $pkgname-$pkgver -p1 < 01ab0f45.patch # Fix infinite loop
+  patch -d $pkgname-$pkgver -p1 < 67d5efd0.patch # Fix crash
 }
 
 build() {