1
0
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:
reimar 2009-11-06 16:10:19 +00:00
parent e83addcbfa
commit 477057dbb5

View File

@ -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;