mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
(video filters) Change all existing video filters to single threaded mode -
the code is not thread-safe
This commit is contained in:
parent
d7ee7efac5
commit
2e0ea00404
@ -234,7 +234,7 @@ static void *twoxbr_generic_create(const struct softfilter_config *config,
|
|||||||
return NULL;
|
return NULL;
|
||||||
filt->workers = (struct softfilter_thread_data*)
|
filt->workers = (struct softfilter_thread_data*)
|
||||||
calloc(threads, sizeof(struct softfilter_thread_data));
|
calloc(threads, sizeof(struct softfilter_thread_data));
|
||||||
filt->threads = threads;
|
filt->threads = 1;
|
||||||
filt->in_fmt = in_fmt;
|
filt->in_fmt = in_fmt;
|
||||||
if (!filt->workers)
|
if (!filt->workers)
|
||||||
{
|
{
|
||||||
|
@ -76,7 +76,7 @@ static void *twoxsai_generic_create(const struct softfilter_config *config,
|
|||||||
return NULL;
|
return NULL;
|
||||||
filt->workers = (struct softfilter_thread_data*)
|
filt->workers = (struct softfilter_thread_data*)
|
||||||
calloc(threads, sizeof(struct softfilter_thread_data));
|
calloc(threads, sizeof(struct softfilter_thread_data));
|
||||||
filt->threads = threads;
|
filt->threads = 1;
|
||||||
filt->in_fmt = in_fmt;
|
filt->in_fmt = in_fmt;
|
||||||
if (!filt->workers)
|
if (!filt->workers)
|
||||||
{
|
{
|
||||||
|
@ -75,7 +75,7 @@ static void *lq2x_generic_create(const struct softfilter_config *config,
|
|||||||
return NULL;
|
return NULL;
|
||||||
filt->workers = (struct softfilter_thread_data*)
|
filt->workers = (struct softfilter_thread_data*)
|
||||||
calloc(threads, sizeof(struct softfilter_thread_data));
|
calloc(threads, sizeof(struct softfilter_thread_data));
|
||||||
filt->threads = threads;
|
filt->threads = 1;
|
||||||
filt->in_fmt = in_fmt;
|
filt->in_fmt = in_fmt;
|
||||||
if (!filt->workers)
|
if (!filt->workers)
|
||||||
{
|
{
|
||||||
|
@ -249,7 +249,7 @@ static void *phosphor2x_generic_create(const struct softfilter_config *config,
|
|||||||
return NULL;
|
return NULL;
|
||||||
filt->workers = (struct softfilter_thread_data*)
|
filt->workers = (struct softfilter_thread_data*)
|
||||||
calloc(threads, sizeof(struct softfilter_thread_data));
|
calloc(threads, sizeof(struct softfilter_thread_data));
|
||||||
filt->threads = threads;
|
filt->threads = 1;
|
||||||
filt->in_fmt = in_fmt;
|
filt->in_fmt = in_fmt;
|
||||||
if (!filt->workers)
|
if (!filt->workers)
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ static void *scale2x_generic_create(const struct softfilter_config *config,
|
|||||||
return NULL;
|
return NULL;
|
||||||
filt->workers = (struct softfilter_thread_data*)
|
filt->workers = (struct softfilter_thread_data*)
|
||||||
calloc(threads, sizeof(struct softfilter_thread_data));
|
calloc(threads, sizeof(struct softfilter_thread_data));
|
||||||
filt->threads = threads;
|
filt->threads = 1;
|
||||||
filt->in_fmt = in_fmt;
|
filt->in_fmt = in_fmt;
|
||||||
if (!filt->workers)
|
if (!filt->workers)
|
||||||
{
|
{
|
||||||
|
@ -76,7 +76,7 @@ static void *supertwoxsai_generic_create(const struct softfilter_config *config,
|
|||||||
if (!filt)
|
if (!filt)
|
||||||
return NULL;
|
return NULL;
|
||||||
filt->workers = (struct softfilter_thread_data*)calloc(threads, sizeof(struct softfilter_thread_data));
|
filt->workers = (struct softfilter_thread_data*)calloc(threads, sizeof(struct softfilter_thread_data));
|
||||||
filt->threads = threads;
|
filt->threads = 1;
|
||||||
filt->in_fmt = in_fmt;
|
filt->in_fmt = in_fmt;
|
||||||
if (!filt->workers)
|
if (!filt->workers)
|
||||||
{
|
{
|
||||||
|
@ -76,7 +76,7 @@ static void *supereagle_generic_create(const struct softfilter_config *config,
|
|||||||
if (!filt)
|
if (!filt)
|
||||||
return NULL;
|
return NULL;
|
||||||
filt->workers = (struct softfilter_thread_data*)calloc(threads, sizeof(struct softfilter_thread_data));
|
filt->workers = (struct softfilter_thread_data*)calloc(threads, sizeof(struct softfilter_thread_data));
|
||||||
filt->threads = threads;
|
filt->threads = 1;
|
||||||
filt->in_fmt = in_fmt;
|
filt->in_fmt = in_fmt;
|
||||||
if (!filt->workers)
|
if (!filt->workers)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user