From 401840aeb928780f528c16117ea47ed11ae0cab1 Mon Sep 17 00:00:00 2001
From: V3n3RiX <venerix@redcorelinux.org>
Date: Sun, 30 Jun 2019 17:57:38 +0100
Subject: media-libs/mlt : version bump

---
 .../mlt-6.16.0-mlt_consumer-race-condition.patch   | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 media-libs/mlt/files/mlt-6.16.0-mlt_consumer-race-condition.patch

(limited to 'media-libs/mlt/files/mlt-6.16.0-mlt_consumer-race-condition.patch')

diff --git a/media-libs/mlt/files/mlt-6.16.0-mlt_consumer-race-condition.patch b/media-libs/mlt/files/mlt-6.16.0-mlt_consumer-race-condition.patch
new file mode 100644
index 00000000..7fd1c577
--- /dev/null
+++ b/media-libs/mlt/files/mlt-6.16.0-mlt_consumer-race-condition.patch
@@ -0,0 +1,30 @@
+From 9b89b781b9d06181c8d486605ed4c2b3089d64d6 Mon Sep 17 00:00:00 2001
+From: alcinos <nicolas.carion@ens-lyon.fr>
+Date: Wed, 1 May 2019 23:50:41 +0200
+Subject: [PATCH] Fix race in mlt_consumer
+
+---
+ src/framework/mlt_consumer.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/framework/mlt_consumer.c b/src/framework/mlt_consumer.c
+index 491bc5e99..0e36bde3c 100644
+--- a/src/framework/mlt_consumer.c
++++ b/src/framework/mlt_consumer.c
+@@ -31,6 +31,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/time.h>
++#include <stdatomic.h>
+ 
+ /** Define this if you want an automatic deinterlace (if necessary) when the
+  * consumer's producer is not running at normal speed.
+@@ -65,7 +66,7 @@ typedef struct
+ 	double fps;
+ 	int channels;
+ 	int frequency;
+-	int speed;
++	atomic_int speed;
+ 	/* additional fields added for the parallel work queue */
+ 	mlt_deque worker_threads;
+ 	pthread_mutex_t done_mutex;
-- 
cgit v1.2.3