mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
movieplayer.cpp: fix handle key play/pause for arm
This commit is contained in:
@@ -1724,8 +1724,6 @@ int CRCInput::translate(int code)
|
|||||||
return RC_up;
|
return RC_up;
|
||||||
case 0x101: // FIXME -- needed?
|
case 0x101: // FIXME -- needed?
|
||||||
return RC_down;
|
return RC_down;
|
||||||
case KEY_PLAYPAUSE:
|
|
||||||
return RC_play;
|
|
||||||
case KEY_PROGRAM:
|
case KEY_PROGRAM:
|
||||||
return RC_timer;
|
return RC_timer;
|
||||||
case KEY_CHANNELUP:
|
case KEY_CHANNELUP:
|
||||||
|
@@ -1512,6 +1512,13 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
// handle CRCInput::RC_playpause key
|
// handle CRCInput::RC_playpause key
|
||||||
bool handle_key_play = true;
|
bool handle_key_play = true;
|
||||||
bool handle_key_pause = true;
|
bool handle_key_pause = true;
|
||||||
|
if (g_settings.mpkey_play == g_settings.mpkey_pause)
|
||||||
|
{
|
||||||
|
if (playstate == CMoviePlayerGui::PLAY)
|
||||||
|
handle_key_play = false;
|
||||||
|
else if (playstate == CMoviePlayerGui::PAUSE)
|
||||||
|
handle_key_pause = false;
|
||||||
|
}
|
||||||
|
|
||||||
#if 0 //bisectional jumps
|
#if 0 //bisectional jumps
|
||||||
if (g_settings.mpkey_play == g_settings.mpkey_pause)
|
if (g_settings.mpkey_play == g_settings.mpkey_pause)
|
||||||
|
Reference in New Issue
Block a user