movieplayer: fix display of timeshift stop dialog ...

... if timeshift was stopped in background while playback


Origin commit data
------------------
Branch: ni/coolstream
Commit: c6bab8b407
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-08-01 (Wed, 01 Aug 2018)

Origin message was:
------------------
- movieplayer: fix display of timeshift stop dialog ...

... if timeshift was stopped in background while playback


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-08-01 19:27:45 +02:00
parent 887e283c0b
commit 751ebd4df3

View File

@@ -1659,7 +1659,12 @@ void CMoviePlayerGui::PlayFileLoop(void)
bool timeshift_stopped = false;
if (timeshift != TSHIFT_MODE_OFF)
timeshift_stopped = CRecordManager::getInstance()->ShowMenu();
{
if (CRecordManager::getInstance()->Timeshift())
timeshift_stopped = CRecordManager::getInstance()->ShowMenu();
else // timeshift playback still active, but recording already stopped
timeshift_stopped = true;
}
if (timeshift == TSHIFT_MODE_OFF || timeshift_stopped)
{