diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-06-30 17:57:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-06-30 17:57:38 +0100 |
commit | 401840aeb928780f528c16117ea47ed11ae0cab1 (patch) | |
tree | 1f86559b60737a9e4d5a3a6cb35fd0310e034f79 /media-libs/mlt/files/mlt-6.16.0-mlt_consumer-race-condition.patch | |
parent | 40bf26faba937a2119dcdd41917ba52be79ec1fa (diff) |
media-libs/mlt : version bump
Diffstat (limited to 'media-libs/mlt/files/mlt-6.16.0-mlt_consumer-race-condition.patch')
-rw-r--r-- | media-libs/mlt/files/mlt-6.16.0-mlt_consumer-race-condition.patch | 30 |
1 files changed, 30 insertions, 0 deletions
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; |