mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Use correct resampler fallback.
This commit is contained in:
parent
df448d37da
commit
d3ffe3292a
@ -50,20 +50,13 @@ static const rarch_resampler_t *find_resampler_driver(const char *ident)
|
||||
return backends[i];
|
||||
else
|
||||
{
|
||||
const rarch_resampler_t *resamp;
|
||||
unsigned d;
|
||||
RARCH_ERR("Couldn't find any resampler driver named \"%s\"\n", ident);
|
||||
RARCH_LOG_OUTPUT("Available resampler drivers are:\n");
|
||||
for (d = 0; backends[d]; d++)
|
||||
RARCH_LOG_OUTPUT("\t%s\n", backends[d]->ident);
|
||||
RARCH_WARN("Going to default to first resampler driver...\n");
|
||||
|
||||
resamp = (const rarch_resampler_t*)&backends[0];
|
||||
|
||||
if (!resamp)
|
||||
return NULL;
|
||||
|
||||
return resamp;
|
||||
RARCH_WARN("Going to default to first resampler driver ...\n");
|
||||
return backends[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user