vo's preinit support

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4359 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2002-01-26 18:27:09 +00:00
parent bf7ca3a712
commit 1ff5f05415
1 changed files with 5 additions and 1 deletions

View File

@ -790,7 +790,11 @@ play_dvd:
mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_InvalidVOdriver,video_driver?video_driver:"?");
exit_player(MSGTR_Exit_error);
}
if((i=video_out->preinit(vo_subdevice))!=0)
{
mp_msg(MSGT_CPLAYER,MSGL_FATAL,"error on vo preinit = %u\n",i);
exit_player(MSGTR_Exit_error);
}
// check audio_out driver name:
if (audio_driver)
if ((i = strcspn(audio_driver, ":")) > 0)