From 0a88b01bed398dd875263d0927be1391e473deae Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 29 Jun 2002 10:52:04 +0000 Subject: [PATCH] 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 --- libvo/vo_xvidix.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index 13629f3fc6..bd23397015 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -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(); }