mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Origin commit data
------------------
Branch: ni/coolstream
Commit: ea1a4ad6f1
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-30 (Fri, 30 Jun 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1289,6 +1289,11 @@ bool CMoviePlayerGui::SetPosition(int pos, bool absolute)
|
||||
{
|
||||
clearSubtitle();
|
||||
bool res = playback->SetPosition(pos, absolute);
|
||||
if(is_file_player && res && speed == 0 && playstate == CMoviePlayerGui::PAUSE){
|
||||
playstate = CMoviePlayerGui::PLAY;
|
||||
speed = 1;
|
||||
playback->SetSpeed(speed);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -1582,7 +1587,8 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
makeScreenShot();
|
||||
} else if ((msg == (neutrino_msg_t) g_settings.mpkey_rewind) ||
|
||||
(msg == (neutrino_msg_t) g_settings.mpkey_forward)) {
|
||||
int newspeed;
|
||||
int newspeed = 0;
|
||||
bool setSpeed = false;
|
||||
if (msg == (neutrino_msg_t) g_settings.mpkey_rewind) {
|
||||
newspeed = (speed >= 0) ? -1 : speed - 1;
|
||||
} else {
|
||||
@@ -1595,9 +1601,10 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
if (playstate != CMoviePlayerGui::PAUSE)
|
||||
playstate = msg == (neutrino_msg_t) g_settings.mpkey_rewind ? CMoviePlayerGui::REW : CMoviePlayerGui::FF;
|
||||
updateLcd();
|
||||
setSpeed = true;
|
||||
}
|
||||
|
||||
if (!FileTimeOSD->IsVisible() && !time_forced) {
|
||||
if (!FileTimeOSD->IsVisible() && !time_forced && setSpeed) {
|
||||
FileTimeOSD->switchMode(position, duration);
|
||||
time_forced = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user