changeset 4528:bd2324553533

Fix multifile playback (sdl was not fully reinitialized).
author atmos4
date Mon, 04 Feb 2002 18:18:46 +0000
parents 832c4dc794e0
children 8f982d17c479
files libvo/vo_sdl.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Mon Feb 04 16:05:37 2002 +0000
+++ b/libvo/vo_sdl.c	Mon Feb 04 18:18:46 2002 +0000
@@ -329,9 +329,9 @@
 	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 @@
 	/* 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) &&