ALSA: Fix an infinite loop bug during device initialization.

This commit is contained in:
David Reid
2018-03-03 21:58:30 +10:00
parent 372b3dd562
commit ca3a024212
+1 -2
View File
@@ -6642,6 +6642,7 @@ static mal_result mal_device_init__alsa(mal_context* pContext, mal_device_type t
free(NAME);
free(DESC);
free(IOID);
ppNextDeviceHint += 1;
if (foundDevice) {
break;
@@ -6832,8 +6833,6 @@ static mal_result mal_device_init__alsa(mal_context* pContext, mal_device_type t
}
}
// Grab the internal channel map. For now we're not going to bother trying to change the channel map and
// instead just do it ourselves.
snd_pcm_chmap_t* pChmap = ((mal_snd_pcm_get_chmap_proc)pContext->alsa.snd_pcm_get_chmap)((snd_pcm_t*)pDevice->alsa.pPCM);