Mercurial > mplayer.hg
comparison mplayer.c @ 4858:65730cea02e7
add half new input support for gui
author | pontscho |
---|---|
date | Mon, 25 Feb 2002 13:14:27 +0000 |
parents | 7dfcfd1b9bf7 |
children | 35dd38bbd7f3 |
comparison
equal
deleted
inserted
replaced
4857:f3f94fb55398 | 4858:65730cea02e7 |
---|---|
781 #endif | 781 #endif |
782 | 782 |
783 if(filename && !guiIntfStruct.FilenameChanged) guiSetFilename( guiIntfStruct.Filename,filename ); | 783 if(filename && !guiIntfStruct.FilenameChanged) guiSetFilename( guiIntfStruct.Filename,filename ); |
784 // guiIntfStruct.Playing= (gui_no_filename) ? 0 : 1; | 784 // guiIntfStruct.Playing= (gui_no_filename) ? 0 : 1; |
785 while(guiIntfStruct.Playing!=1){ | 785 while(guiIntfStruct.Playing!=1){ |
786 mp_cmd_t* cmd; | |
786 usleep(20000); | 787 usleep(20000); |
787 guiEventHandling(); | 788 guiEventHandling(); |
789 if ( (cmd = mp_input_get_cmd(0,0)) != NULL) guiGetEvent( guiIEvent,(char *)cmd->id ); | |
788 } | 790 } |
789 | 791 |
790 play_dvd: | 792 play_dvd: |
791 | 793 |
792 #ifdef USE_SUB | 794 #ifdef USE_SUB |
2635 tv_step_chanlist(tv_handler); | 2637 tv_step_chanlist(tv_handler); |
2636 } break; | 2638 } break; |
2637 #endif | 2639 #endif |
2638 case MP_CMD_VO_FULLSCREEN: | 2640 case MP_CMD_VO_FULLSCREEN: |
2639 { | 2641 { |
2642 #ifdef HAVE_NEW_GUI | |
2643 if ( use_gui ) guiGetEvent( guiIEvent,(char *)MP_CMD_GUI_FULLSCREEN ); | |
2644 else | |
2645 #endif | |
2640 video_out->control(VOCTRL_FULLSCREEN, 0); | 2646 video_out->control(VOCTRL_FULLSCREEN, 0); |
2641 } break; | 2647 } break; |
2642 default : | 2648 default : { |
2649 #ifdef HAVE_NEW_GUI | |
2650 if ( ( use_gui )&&( cmd->id > MP_CMD_GUI_EVENTS ) ) guiGetEvent( guiIEvent,(char *)cmd->id ); | |
2651 else | |
2652 #endif | |
2643 printf("Received unknow cmd %s\n",cmd->name); | 2653 printf("Received unknow cmd %s\n",cmd->name); |
2654 } | |
2644 } | 2655 } |
2645 mp_cmd_free(cmd); | 2656 mp_cmd_free(cmd); |
2646 } | 2657 } |
2647 } | 2658 } |
2648 #endif | 2659 #endif |