changeset 32365:5ce38803316e

cosmetics: Drop some {} from if statements to get rid of pointless #ifdefs.
author diego
date Fri, 08 Oct 2010 09:00:50 +0000
parents d9c8f66f77e1
children 3a6a61ffbb34
files libvo/vo_dxr3.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_dxr3.c	Fri Oct 08 08:56:20 2010 +0000
+++ b/libvo/vo_dxr3.c	Fri Oct 08 09:00:50 2010 +0000
@@ -708,13 +708,9 @@
 		overlay_release(overlay_data);
 
 #ifdef CONFIG_GUI
-		if (!use_gui) {
+		if (!use_gui)
 #endif
 			vo_x11_uninit();
-
-#ifdef CONFIG_GUI
-		}
-#endif
 	}
 #endif
 	if (old_vmode != -1) {
@@ -890,15 +886,12 @@
 		/* Initialize overlay and X11 */
 		overlay_data = overlay_init(fd_control);
 #ifdef CONFIG_GUI
-		if (!use_gui) {
+		if (!use_gui)
 #endif
 			if (!vo_init()) {
 				mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_UnableToInitX11);
 				return -1;
 			}
-#ifdef CONFIG_GUI
-		}
-#endif
 	}
 #endif