summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-25 13:14:27 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-25 13:14:27 +0000
commit4b6f1667dbc44aebfae5de7d92ae5b8a2095c243 (patch)
treedb311478b0e3e25e7ad976f6c998d0b3d9cc4105 /mplayer.c
parentc256e5a766f673797a505727a8437ce78fd0dcdf (diff)
downloadmpv-4b6f1667dbc44aebfae5de7d92ae5b8a2095c243.tar.bz2
mpv-4b6f1667dbc44aebfae5de7d92ae5b8a2095c243.tar.xz
add half new input support for gui
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4859 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 17a2191827..d40e9c2e08 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -783,8 +783,10 @@ if(!use_stdin && !slave_mode){
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,11 +2639,20 @@ if(step_sec>0) {
#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);
}
}