[MPlayer-users] incorrect reaction on the keys
mlg 3
m_l_g3 at yahoo.com
Fri Dec 9 00:14:47 CET 2011
I see the code in the repo, but paused mplayer still starts playing when I Ctrl-Alt-Left to another desktop.
I have added some logging:
--- libvo/x11_common.c(revision 34413)
+++ libvo/x11_common.c(working copy)
@@ -869,6 +869,7 @@
// sync with reality.
// This usually happens when a shortcut involving CTRL
// was used to switch to a different window/workspace.
+ av_log(NULL, AV_LOG_WARNING, "ctrl_state=%x, Event.xkey.state=%x\n",ctrl_state,Event.xkey.state);
if (ctrl_state != !!(Event.xkey.state & 4)) {
ctrl_state = !!(Event.xkey.state & 4);
mplayer_put_key(KEY_CTRL |
This is what I get when I press keys:
#Space (pauses mplayer):
A: 3.2 V: 3.2 A-V: 0.012 ct: -0.016 78/ 78 35% 4% 0.7% 7 0
ctrl_state=0, Event.xkey.state=0
A: 3.3 V: 3.3 A-V: 0.046 ct: -0.013 80/ 80 36% 5% 0.7% 7 0
===== PAUSE =====
#Ctrl+Alt+Left (playing starts):
ctrl_state=0, Event.xkey.state=0
ctrl_state=1, Event.xkey.state=8
A: 15.1 V: 15.1 A-V: 0.009 ct: -0.015 363/363 33% 5% 0.7% 13 0
#Space again (playing stops):
ctrl_state=0, Event.xkey.state=0A: 15.2 V: 15.2 A-V: 0.032 ct: -0.012 365/365 33% 5% 0.7% 13 0
===== PAUSE =====
#Ctrl+Alt (playing starts):
ctrl_state=0, Event.xkey.state=0
ctrl_state=1, Event.xkey.state=8
#release Ctrl+Alt (playing continues):
ctrl_state=0, Event.xkey.state=4
A: 16.4 V: 16.3 A-V: 0.002 ct: -0.015 393/393 36% 5% 0.8% 27 0
#Space, the 3rd time (mplayer pauses):
ctrl_state=1, Event.xkey.state=0
A: 16.5 V: 16.4 A-V: 0.019 ct: -0.012 395/395 36% 6% 0.8% 27 0
===== PAUSE =====
----- Original Message -----
From: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
To: mlg 3 <m_l_g3 at yahoo.com>; "MPlayer usage questions, feature requests, bug reports" <mplayer-users at mplayerhq.hu>
Cc:
Sent: Monday, December 5, 2011 10:39 PM
Subject: Re: [MPlayer-users] incorrect reaction on the keys
On Mon, Dec 05, 2011 at 03:32:15AM -0800, mlg 3 wrote:
> >From: Reimar Döffinger <Reimar.Doeffinger@**.de>
>
> >
> >On Sun, Dec 04, 2011 at 03:39:16AM -0800, mlg 3 wrote:
> >> I run mplayer from the command line.
> >> When I switch mplayer into full-screen mode, press pause (space), and go one desktop left,
> >> mplayer starts and does not react on the keys anymore.
> >> On the console, it says:
> >> No bind found for key 'CTRL-SPACE'.
> >> If I press Ctrl, it begins to react to the keys again.
> >> So it means it does not detect the release of the Ctrl key.
> >
> >That is because X11 never sends a release event to MPlayer in
> >that case.
> >But I implemented a workaround to detect this, it fixed the issue
> >at least for me.
>
>
> What workaround?
The "if (ctrl_state != !!(Event.xkey.state & 4))" one in x11_common.c.
>It's either not in the repo or disabled by default.
Neither nor.
_______________________________________________
MPlayer-users mailing list
MPlayer-users at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
More information about the MPlayer-users
mailing list