Skip to content

Commit d1c3206

Browse files
authored
Merge pull request #228 from skbeh/audio
Continue trying when setting audio hwparams fails
2 parents 71a74d2 + 9db911e commit d1c3206

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/decoder_snd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ snd_pcm_t *find_snd_device(void) {
278278
if (set_hwparams(handle, hwparams, SND_PCM_ACCESS_MMAP_INTERLEAVED) < 0) {
279279
errprint("setting audio hwparams failed\n");
280280
snd_pcm_close(handle);
281-
goto OUT;
281+
continue;
282282
}
283283

284284
if (set_swparams(handle, swparams) < 0) {
@@ -302,4 +302,4 @@ snd_pcm_t *find_snd_device(void) {
302302
OUT:
303303
snd_device[0] = 0; // this will get shown on the UI, clear the value
304304
return NULL;
305-
}
305+
}

0 commit comments

Comments
 (0)