Skip to content

Commit a12ec83

Browse files
bardliaoperexg
authored andcommitted
aplay: add missing break before the default case
Add the break before the default case back. Otherwise, all cases will fall into the default/error case. Closes: #315 Fixes: e78583a ("aplay: reorganize format handling in begin_wave()") Signed-off-by: Bard Liao <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent 1058706 commit a12ec83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aplay/aplay.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,7 @@ static void begin_wave(int fd, size_t cnt)
27312731
case SND_PCM_FORMAT_S32_LE:
27322732
case SND_PCM_FORMAT_FLOAT_LE:
27332733
case SND_PCM_FORMAT_S24_3LE:
2734+
break;
27342735
default:
27352736
_format:
27362737
error(_("Wave doesn't support %s format..."), snd_pcm_format_name(hwparams.format));

0 commit comments

Comments
 (0)