mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Avoid printing errors when filter_idx is 0.
Misleading ...
This commit is contained in:
parent
420a203a02
commit
b95e27cbb2
15
gfx/filter.c
15
gfx/filter.c
@ -147,19 +147,19 @@ rarch_softfilter_t *rarch_softfilter_new(const char *filter_path,
|
|||||||
enum retro_pixel_format in_pixel_format,
|
enum retro_pixel_format in_pixel_format,
|
||||||
unsigned max_width, unsigned max_height)
|
unsigned max_width, unsigned max_height)
|
||||||
{
|
{
|
||||||
unsigned i, cpu_features, output_fmts, input_fmts, input_fmt;
|
unsigned cpu_features, output_fmts, input_fmts, input_fmt;
|
||||||
softfilter_get_implementation_t cb;
|
|
||||||
|
|
||||||
i = 0;
|
|
||||||
|
|
||||||
(void)i;
|
|
||||||
(void)filter_path;
|
(void)filter_path;
|
||||||
|
|
||||||
|
#if defined(HAVE_FILTERS_BUILTIN)
|
||||||
|
if (!g_settings.video.filter_idx)
|
||||||
|
return NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
rarch_softfilter_t *filt = (rarch_softfilter_t*)calloc(1, sizeof(*filt));
|
rarch_softfilter_t *filt = (rarch_softfilter_t*)calloc(1, sizeof(*filt));
|
||||||
if (!filt)
|
if (!filt)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
cb = NULL;
|
softfilter_get_implementation_t cb = NULL;
|
||||||
#if defined(HAVE_FILTERS_BUILTIN)
|
#if defined(HAVE_FILTERS_BUILTIN)
|
||||||
cb = (softfilter_get_implementation_t)softfilter_get_implementation_from_idx(g_settings.video.filter_idx);
|
cb = (softfilter_get_implementation_t)softfilter_get_implementation_from_idx(g_settings.video.filter_idx);
|
||||||
#elif defined(HAVE_DYLIB)
|
#elif defined(HAVE_DYLIB)
|
||||||
@ -256,6 +256,7 @@ rarch_softfilter_t *rarch_softfilter_new(const char *filter_path,
|
|||||||
goto error;
|
goto error;
|
||||||
filt->threads = threads;
|
filt->threads = threads;
|
||||||
|
|
||||||
|
unsigned i;
|
||||||
for (i = 0; i < threads; i++)
|
for (i = 0; i < threads; i++)
|
||||||
{
|
{
|
||||||
filt->thread_data[i].userdata = filt->impl_data;
|
filt->thread_data[i].userdata = filt->impl_data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user