Mercurial > mplayer.hg
diff mplayer.c @ 33732:90c992ac5011
Make guiEventHandling() a gui() call.
The new parameter to use is GUI_HANDLE_EVENTS.
author | ib |
---|---|
date | Tue, 05 Jul 2011 13:48:55 +0000 |
parents | 81f71d910333 |
children | 1fbe7adc4eaf |
line wrap: on
line diff
--- a/mplayer.c Tue Jul 05 12:05:06 2011 +0000 +++ b/mplayer.c Tue Jul 05 13:48:55 2011 +0000 @@ -2556,7 +2556,7 @@ mpctx->video_out->check_events(); #ifdef CONFIG_GUI if (use_gui) { - guiEventHandling(); + gui(GUI_HANDLE_EVENTS, 0); gui(GUI_REDRAW, 0); if (guiInfo.Playing != GUI_PAUSE || (rel_seek_secs || abs_seek_pos)) break; @@ -3094,7 +3094,7 @@ while (guiInfo.Playing != GUI_PLAY) { mp_cmd_t *cmd; usec_sleep(20000); - guiEventHandling(); + gui(GUI_HANDLE_EVENTS, 0); gui(GUI_REDRAW, 0); if ((cmd = mp_input_get_cmd(0, 0, 0)) != NULL) { gui(GUI_RUN_COMMAND, (void *)cmd->id); @@ -3812,7 +3812,7 @@ #ifdef CONFIG_GUI if (use_gui) - guiEventHandling(); + gui(GUI_HANDLE_EVENTS, 0); #endif current_module = "vo_check_events"; @@ -3983,7 +3983,7 @@ #ifdef CONFIG_GUI if (use_gui) { - guiEventHandling(); + gui(GUI_HANDLE_EVENTS, 0); if (mpctx->demuxer->file_format == DEMUXER_TYPE_AVI && mpctx->sh_video && mpctx->sh_video->video.dwLength > 2) { // get pos from frame number / total frames guiInfo.Position = (float)mpctx->d_video->pack_no * 100.0f / mpctx->sh_video->video.dwLength;