infoviewer: don't handle volume keys in movieplayer

Origin commit data
------------------
Commit: de490421e3
Author: defans <defans@bluepeercrew.us>
Date: 2016-03-10 (Thu, 10 Mar 2016)

Origin message was:
------------------
- infoviewer: don't handle volume keys in movieplayer
This commit is contained in:
defans
2016-03-10 22:15:04 +01:00
committed by vanhofen
parent 10a053b74a
commit 1e908d977e

View File

@@ -1117,7 +1117,14 @@ void CInfoViewer::loop(bool show_dot)
/* this debug message will only hit in movieplayer mode, where console is /* this debug message will only hit in movieplayer mode, where console is
* spammed to death anyway... */ * spammed to death anyway... */
printf("%s:%d msg->MP: %08lx, data: %08lx\n", __func__, __LINE__, (long)msg, (long)data); printf("%s:%d msg->MP: %08lx, data: %08lx\n", __func__, __LINE__, (long)msg, (long)data);
if (msg < CRCInput::RC_Events) /* RC / Keyboard event */
bool volume_keys = (
msg == CRCInput::RC_spkr
|| msg == (neutrino_msg_t) g_settings.key_volumeup
|| msg == (neutrino_msg_t) g_settings.key_volumedown
);
if (msg < CRCInput::RC_Events && !volume_keys)
{ {
g_RCInput->postMsg (msg, data); g_RCInput->postMsg (msg, data);
res = messages_return::cancel_info; res = messages_return::cancel_info;