changeset 8778:ff92d9b5ade5

don't keep mga_vid device open if x11 init fails (fixes "-vo xmga,mga")
author rfelker
date Sat, 04 Jan 2003 19:17:37 +0000
parents bd9daec7b087
children 43b2ecb7543c
files libvo/mga_common.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/mga_common.c	Sat Jan 04 19:07:46 2003 +0000
+++ b/libvo/mga_common.c	Sat Jan 04 19:17:37 2003 +0000
@@ -421,7 +421,10 @@
 	}
 
 #ifdef VO_XMGA
-  if (!vo_init()) return -1;
+  if (!vo_init()) {
+    close(f);
+    return -1;
+  }
 #endif
 
   return 0;