{input,output}/alsa: work around -Wswitch due to SND_PCM_STATE_PRIVATE1
This commit is contained in:
parent
c44d1566fa
commit
ac61fd1d78
@ -270,6 +270,12 @@ AlsaInputStream::Recover(int err)
|
||||
/* this is no error, so just keep running */
|
||||
err = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* this default case is just here to work around
|
||||
-Wswitch due to SND_PCM_STATE_PRIVATE1 (libasound
|
||||
1.1.6) */
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
@ -846,6 +846,12 @@ AlsaOutput::Recover(int err)
|
||||
case SND_PCM_STATE_DRAINING:
|
||||
err = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* this default case is just here to work around
|
||||
-Wswitch due to SND_PCM_STATE_PRIVATE1 (libasound
|
||||
1.1.6) */
|
||||
break;
|
||||
}
|
||||
|
||||
return err;
|
||||
|
Loading…
Reference in New Issue
Block a user