changeset 6598:ea9418aec756

fixed vidix terminating if init error occured, bug found by KotH
author alex
date Sat, 29 Jun 2002 10:52:04 +0000
parents 4e543bd6cc0a
children f20184a10258
files libvo/vo_xvidix.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xvidix.c	Sat Jun 29 10:39:58 2002 +0000
+++ b/libvo/vo_xvidix.c	Sat Jun 29 10:52:04 2002 +0000
@@ -164,11 +164,9 @@
 	    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();
     }