# HG changeset patch # User reimar # Date 1343069960 0 # Node ID 359ceed74184e05fe88b00d42b965c7edbcabb65 # Parent 2a982b69303be7373f0555f9ac1f0ca48e556c09 Fix crash for -vo sdl -fs when running under X. diff -r 2a982b69303b -r 359ceed74184 libvo/vo_sdl.c --- 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);