comparison mplayer.c @ 25436:333ba4e7d5e3

Ignore mouse pos command when pausing.
author ulion
date Wed, 19 Dec 2007 16:17:26 +0000
parents 55e3b1a32c65
children 7ef04742572c
comparison
equal deleted inserted replaced
25435:5779358c3f86 25436:333ba4e7d5e3
2111 mpctx->video_out->control(VOCTRL_PAUSE, NULL); 2111 mpctx->video_out->control(VOCTRL_PAUSE, NULL);
2112 2112
2113 if (mpctx->audio_out && mpctx->sh_audio) 2113 if (mpctx->audio_out && mpctx->sh_audio)
2114 mpctx->audio_out->pause(); // pause audio, keep data if possible 2114 mpctx->audio_out->pause(); // pause audio, keep data if possible
2115 2115
2116 while ( (cmd = mp_input_get_cmd(20, 1, 1)) == NULL) { 2116 while ( (cmd = mp_input_get_cmd(20, 1, 1)) == NULL
2117 || cmd->id == MP_CMD_SET_MOUSE_POS) {
2118 if (cmd) {
2119 cmd = mp_input_get_cmd(0,1,0);
2120 mp_cmd_free(cmd);
2121 continue;
2122 }
2117 if (mpctx->sh_video && mpctx->video_out && vo_config_count) 2123 if (mpctx->sh_video && mpctx->video_out && vo_config_count)
2118 mpctx->video_out->check_events(); 2124 mpctx->video_out->check_events();
2119 #ifdef HAVE_NEW_GUI 2125 #ifdef HAVE_NEW_GUI
2120 if (use_gui) { 2126 if (use_gui) {
2121 guiEventHandling(); 2127 guiEventHandling();