[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.86,1.87

Atmosfear atmos4 at mplayerhq.hu
Sun Jun 16 04:01:55 CEST 2002


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

Modified Files:
	vo_sdl.c 
Log Message:
Streamline enter-key behaviour suggested by Christian Ohm and disable I420/IYUV because
SDL seems buggy with it (doesn't use hw accel, although XVideo hw supports it).
YV12 will be used instead.


Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- vo_sdl.c	29 Apr 2002 09:52:21 -0000	1.86
+++ vo_sdl.c	16 Jun 2002 02:01:53 -0000	1.87
@@ -1188,7 +1188,7 @@
 	struct sdl_priv_s *priv = &sdl_priv;
 	SDL_Event event;
 	SDLKey keypressed = 0;
-	static int firstcheck = 0, modifiers = 0;
+	static int modifiers = 0;
 	
 	/* Poll the waiting SDL Events */
 	while ( SDL_PollEvent(&event) ) {
@@ -1308,7 +1308,9 @@
 
                                 else switch(keypressed){
 				case SDLK_RETURN:
-					if (!firstcheck) { firstcheck = 1; break; }
+					SDL_ShowCursor(1);
+					mplayer_put_key(KEY_ENTER);
+				break;
                                 case SDLK_ESCAPE:
 				case SDLK_q:
 					SDL_ShowCursor(1);
@@ -1579,8 +1581,9 @@
 {
     switch(format){
     case IMGFMT_YV12:
-    case IMGFMT_I420:
-    case IMGFMT_IYUV:
+// it seems buggy (not hw accelerated), so just use YV12 instead!
+//    case IMGFMT_I420:
+//    case IMGFMT_IYUV:
     case IMGFMT_YUY2:
     case IMGFMT_UYVY:
     case IMGFMT_YVYU:




More information about the MPlayer-cvslog mailing list