[Mplayer-cvslog] CVS: main mplayer.c,1.416,1.417
Zoltan Ponekker
pontscho at mplayer.dev.hu
Mon Feb 25 14:14:28 CET 2002
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv21388
Modified Files:
mplayer.c
Log Message:
add half new input support for gui
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.416
retrieving revision 1.417
diff -u -r1.416 -r1.417
--- mplayer.c 25 Feb 2002 08:27:15 -0000 1.416
+++ mplayer.c 25 Feb 2002 13:14:26 -0000 1.417
@@ -783,8 +783,10 @@
if(filename && !guiIntfStruct.FilenameChanged) guiSetFilename( guiIntfStruct.Filename,filename );
// guiIntfStruct.Playing= (gui_no_filename) ? 0 : 1;
while(guiIntfStruct.Playing!=1){
+ mp_cmd_t* cmd;
usleep(20000);
guiEventHandling();
+ if ( (cmd = mp_input_get_cmd(0,0)) != NULL) guiGetEvent( guiIEvent,(char *)cmd->id );
}
play_dvd:
@@ -2637,10 +2639,19 @@
#endif
case MP_CMD_VO_FULLSCREEN:
{
+#ifdef HAVE_NEW_GUI
+ if ( use_gui ) guiGetEvent( guiIEvent,(char *)MP_CMD_GUI_FULLSCREEN );
+ else
+#endif
video_out->control(VOCTRL_FULLSCREEN, 0);
} break;
- default :
+ default : {
+#ifdef HAVE_NEW_GUI
+ if ( ( use_gui )&&( cmd->id > MP_CMD_GUI_EVENTS ) ) guiGetEvent( guiIEvent,(char *)cmd->id );
+ else
+#endif
printf("Received unknow cmd %s\n",cmd->name);
+ }
}
mp_cmd_free(cmd);
}
More information about the MPlayer-cvslog
mailing list