changeset 25436:333ba4e7d5e3

Ignore mouse pos command when pausing.
author ulion
date Wed, 19 Dec 2007 16:17:26 +0000
parents 5779358c3f86
children 2664bccccb80
files mplayer.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Dec 19 15:21:27 2007 +0000
+++ b/mplayer.c	Wed Dec 19 16:17:26 2007 +0000
@@ -2113,7 +2113,13 @@
     if (mpctx->audio_out && mpctx->sh_audio)
 	mpctx->audio_out->pause();	// pause audio, keep data if possible
 
-    while ( (cmd = mp_input_get_cmd(20, 1, 1)) == NULL) {
+    while ( (cmd = mp_input_get_cmd(20, 1, 1)) == NULL
+            || cmd->id == MP_CMD_SET_MOUSE_POS) {
+	if (cmd) {
+	  cmd = mp_input_get_cmd(0,1,0);
+	  mp_cmd_free(cmd);
+	  continue;
+	}
 	if (mpctx->sh_video && mpctx->video_out && vo_config_count)
 	    mpctx->video_out->check_events();
 #ifdef HAVE_NEW_GUI