fixed vidix terminating if init error occured, bug found by KotH

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6599 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-06-29 10:52:04 +00:00
parent c282ad5a4c
commit 0a88b01bed
1 changed files with 2 additions and 4 deletions

View File

@ -164,11 +164,9 @@ static void set_window(int force_update,const vo_tune_info_t *info)
window_width, window_height, image_format, vo_depthonscreen,
vo_screenwidth, vo_screenheight,info) != 0)
{
mp_msg(MSGT_VO, MSGL_FATAL, "Can't initialize VIDIX driver: %s: %s\n",
vidix_name, strerror(errno));
vidix_term();
mp_msg(MSGT_VO, MSGL_FATAL, "Can't initialize VIDIX driver: %s\n", strerror(errno));
uninit();
exit(1); /* !!! */
exit_player("vidix error"); /* !!! */
}
vidix_start();
}