changeset 34953:359ceed74184

Fix crash for -vo sdl -fs when running under X.
author reimar
date Mon, 23 Jul 2012 18:59:20 +0000
parents 2a982b69303b
children 9c4b0bb72197
files libvo/vo_sdl.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Sun Jul 22 21:26:51 2012 +0000
+++ b/libvo/vo_sdl.c	Mon Jul 23 18:59:20 2012 +0000
@@ -530,7 +530,8 @@
 		screen_surface_w = vo_screenwidth;
 		screen_surface_h = vo_screenheight;
 	}
-	else if (mode < 0) {
+	else {
+	if (mode < 0) {
         int i,j,imax;
 		mode = 0; // Default to the biggest mode avaible
 		if ( mp_msg_test(MSGT_VO,MSGL_V) ) for(i=0;priv->fullmodes[i];++i)
@@ -553,6 +554,7 @@
 	}
        screen_surface_h = priv->fullmodes[mode]->h;
        screen_surface_w = priv->fullmodes[mode]->w;
+       }
 
 	aspect_save_screenres(screen_surface_w, screen_surface_h);