[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.62,1.63

Atmosfear atmos4 at mplayer.dev.hu
Mon Feb 4 19:18:49 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv3839/libvo

Modified Files:
	vo_sdl.c 
Log Message:
Fix multifile playback (sdl was not fully reinitialized).


Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- vo_sdl.c	31 Jan 2002 09:52:45 -0000	1.62
+++ vo_sdl.c	4 Feb 2002 18:18:46 -0000	1.63
@@ -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) && 




More information about the MPlayer-cvslog mailing list