diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-04 18:18:46 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-04 18:18:46 +0000 |
commit | 15daf31f0b027326042a371382bb40f8daba2455 (patch) | |
tree | 7ac501805fc1642e2449b40299b03e705d099b7f /libvo/vo_sdl.c | |
parent | 2b819b72c80af5f4197c3ef8eb3982339b70a5db (diff) | |
download | mpv-15daf31f0b027326042a371382bb40f8daba2455.tar.bz2 mpv-15daf31f0b027326042a371382bb40f8daba2455.tar.xz |
Fix multifile playback (sdl was not fully reinitialized).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4529 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_sdl.c')
-rw-r--r-- | libvo/vo_sdl.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) && |