(video filters) Change all existing video filters to single threaded mode -

the code is not thread-safe
This commit is contained in:
twinaphex 2015-04-12 07:45:28 +02:00
parent d7ee7efac5
commit 2e0ea00404
7 changed files with 7 additions and 7 deletions

View File

@ -234,7 +234,7 @@ static void *twoxbr_generic_create(const struct softfilter_config *config,
return NULL;
filt->workers = (struct softfilter_thread_data*)
calloc(threads, sizeof(struct softfilter_thread_data));
filt->threads = threads;
filt->threads = 1;
filt->in_fmt = in_fmt;
if (!filt->workers)
{

View File

@ -76,7 +76,7 @@ static void *twoxsai_generic_create(const struct softfilter_config *config,
return NULL;
filt->workers = (struct softfilter_thread_data*)
calloc(threads, sizeof(struct softfilter_thread_data));
filt->threads = threads;
filt->threads = 1;
filt->in_fmt = in_fmt;
if (!filt->workers)
{

View File

@ -75,7 +75,7 @@ static void *lq2x_generic_create(const struct softfilter_config *config,
return NULL;
filt->workers = (struct softfilter_thread_data*)
calloc(threads, sizeof(struct softfilter_thread_data));
filt->threads = threads;
filt->threads = 1;
filt->in_fmt = in_fmt;
if (!filt->workers)
{

View File

@ -249,7 +249,7 @@ static void *phosphor2x_generic_create(const struct softfilter_config *config,
return NULL;
filt->workers = (struct softfilter_thread_data*)
calloc(threads, sizeof(struct softfilter_thread_data));
filt->threads = threads;
filt->threads = 1;
filt->in_fmt = in_fmt;
if (!filt->workers)
{

View File

@ -138,7 +138,7 @@ static void *scale2x_generic_create(const struct softfilter_config *config,
return NULL;
filt->workers = (struct softfilter_thread_data*)
calloc(threads, sizeof(struct softfilter_thread_data));
filt->threads = threads;
filt->threads = 1;
filt->in_fmt = in_fmt;
if (!filt->workers)
{

View File

@ -76,7 +76,7 @@ static void *supertwoxsai_generic_create(const struct softfilter_config *config,
if (!filt)
return NULL;
filt->workers = (struct softfilter_thread_data*)calloc(threads, sizeof(struct softfilter_thread_data));
filt->threads = threads;
filt->threads = 1;
filt->in_fmt = in_fmt;
if (!filt->workers)
{

View File

@ -76,7 +76,7 @@ static void *supereagle_generic_create(const struct softfilter_config *config,
if (!filt)
return NULL;
filt->workers = (struct softfilter_thread_data*)calloc(threads, sizeof(struct softfilter_thread_data));
filt->threads = threads;
filt->threads = 1;
filt->in_fmt = in_fmt;
if (!filt->workers)
{