mirror of https://github.com/mpv-player/mpv
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:
parent
c282ad5a4c
commit
0a88b01bed
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue