mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 20:25:33 +00:00
alsa: Fix possible uninitialized string
This commit is contained in:
parent
a2c27d39cf
commit
c8061ed2d1
|
@ -656,11 +656,12 @@ ALSA_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
|
||||||
#ifdef SND_CHMAP_API_VERSION
|
#ifdef SND_CHMAP_API_VERSION
|
||||||
chmap = ALSA_snd_pcm_get_chmap(pcm_handle);
|
chmap = ALSA_snd_pcm_get_chmap(pcm_handle);
|
||||||
if (chmap) {
|
if (chmap) {
|
||||||
ALSA_snd_pcm_chmap_print(chmap, sizeof(chmap_str), chmap_str);
|
if (ALSA_snd_pcm_chmap_print(chmap, sizeof(chmap_str), chmap_str) > 0) {
|
||||||
if (SDL_strcmp("FL FR FC LFE RL RR", chmap_str) == 0 ||
|
if (SDL_strcmp("FL FR FC LFE RL RR", chmap_str) == 0 ||
|
||||||
SDL_strcmp("FL FR FC LFE SL SR", chmap_str) == 0) {
|
SDL_strcmp("FL FR FC LFE SL SR", chmap_str) == 0) {
|
||||||
this->hidden->swizzle_func = no_swizzle;
|
this->hidden->swizzle_func = no_swizzle;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
free(chmap);
|
free(chmap);
|
||||||
}
|
}
|
||||||
#endif /* SND_CHMAP_API_VERSION */
|
#endif /* SND_CHMAP_API_VERSION */
|
||||||
|
|
Loading…
Reference in a new issue