- neutrino: add more RC_playpause handling

Conflicts:
	src/gui/movieplayer.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-12-19 10:58:44 +01:00
committed by Thilo Graf
parent c9e4712011
commit 3d5aa5977a
9 changed files with 63 additions and 30 deletions

View File

@@ -408,6 +408,15 @@ int CAudioPlayerGui::show()
}
g_RCInput->getMsg(&msg, &data, 10); // 1 sec timeout to update play/stop state display
if (msg == CRCInput::RC_playpause)
{
// manipulate msg
if (m_state == CAudioPlayerGui::PAUSE)
msg = CRCInput::RC_play;
else
msg = CRCInput::RC_pause;
}
if (msg == CRCInput::RC_timeout || msg == NeutrinoMessages::EVT_TIMER)
{
int delay = time(NULL) - m_idletime;