mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- neutrino: add more RC_playpause handling
Conflicts: src/gui/movieplayer.cpp Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user