[MPlayer-cvslog] r35047 - trunk/libvo/vo_sdl.c
reimar
subversion at mplayerhq.hu
Mon Jul 23 20:59:21 CEST 2012
Author: reimar
Date: Mon Jul 23 20:59:20 2012
New Revision: 35047
Log:
Fix crash for -vo sdl -fs when running under X.
Modified:
trunk/libvo/vo_sdl.c
Modified: trunk/libvo/vo_sdl.c
==============================================================================
--- trunk/libvo/vo_sdl.c Sun Jul 22 23:26:51 2012 (r35046)
+++ trunk/libvo/vo_sdl.c Mon Jul 23 20:59:20 2012 (r35047)
@@ -530,7 +530,8 @@ static void set_fullmode (int mode) {
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 @@ static void set_fullmode (int mode) {
}
screen_surface_h = priv->fullmodes[mode]->h;
screen_surface_w = priv->fullmodes[mode]->w;
+ }
aspect_save_screenres(screen_surface_w, screen_surface_h);
More information about the MPlayer-cvslog
mailing list