mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 10:02:17 +00:00
Split assignment from error value check to avoid overcomplicated if () condition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29841 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e83addcbfa
commit
477057dbb5
@ -1634,11 +1634,12 @@ void reinit_audio_chain(void) {
|
||||
}
|
||||
#endif
|
||||
current_module="ao2_init";
|
||||
if(!(mpctx->audio_out=init_best_audio_out(audio_driver_list,
|
||||
mpctx->audio_out = init_best_audio_out(audio_driver_list,
|
||||
0, // plugin flag
|
||||
ao_data.samplerate,
|
||||
ao_data.channels,
|
||||
ao_data.format,0))){
|
||||
ao_data.format,0);
|
||||
if(!mpctx->audio_out){
|
||||
// FAILED:
|
||||
mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CannotInitAO);
|
||||
goto init_error;
|
||||
|
Loading…
Reference in New Issue
Block a user