diff libvo/mga_common.c @ 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 9fc45fe0d444
children 3b328492f94d
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;