From 15daf31f0b027326042a371382bb40f8daba2455 Mon Sep 17 00:00:00 2001 From: atmos4 Date: Mon, 4 Feb 2002 18:18:46 +0000 Subject: Fix multifile playback (sdl was not fully reinitialized). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4529 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_sdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libvo/vo_sdl.c') diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index d012f8f331..a9e99b1c0b 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -329,9 +329,9 @@ static int sdl_open (void *plugin, void *name) const SDL_VideoInfo *vidInfo = NULL; static int opened = 0; - if (opened) + /*if (opened) return 0; - opened = 1; + opened = 1;*/ if(verbose > 2) printf("SDL: Opening Plugin\n"); @@ -560,7 +560,7 @@ static void set_fullmode (int mode) { /* if we haven't set a fullmode yet, default to the lowest res fullmode first */ /* But select a mode where the full video enter */ if (mode < 0) { - int i; + int i = 0; mode = 0; // Default to the biggest mode avaible for(i = findArrayEnd(priv->fullmodes) - 1; i >=0; i--) { if( (priv->fullmodes[i]->w >= priv->width) && -- cgit v1.2.3