diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-25 13:14:27 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-25 13:14:27 +0000 |
commit | 4b6f1667dbc44aebfae5de7d92ae5b8a2095c243 (patch) | |
tree | db311478b0e3e25e7ad976f6c998d0b3d9cc4105 /mplayer.c | |
parent | c256e5a766f673797a505727a8437ce78fd0dcdf (diff) | |
download | mpv-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.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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); } } |