movieplayer.cpp: fix handle key play/pause for arm

This commit is contained in:
GetAway
2018-05-26 17:59:18 +02:00
parent 22eedad076
commit 714cca6ba6
2 changed files with 7 additions and 2 deletions

View File

@@ -1724,8 +1724,6 @@ int CRCInput::translate(int code)
return RC_up;
case 0x101: // FIXME -- needed?
return RC_down;
case KEY_PLAYPAUSE:
return RC_play;
case KEY_PROGRAM:
return RC_timer;
case KEY_CHANNELUP:

View File

@@ -1512,6 +1512,13 @@ void CMoviePlayerGui::PlayFileLoop(void)
// handle CRCInput::RC_playpause key
bool handle_key_play = 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 (g_settings.mpkey_play == g_settings.mpkey_pause)