diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-02-08 15:22:40 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-02-08 15:31:59 +0100 |
commit | c3f7a2cfdf876ff0980e2838c5dbc65ad998404a (patch) | |
tree | 58c967c4a0eee6efe5819f7ca6b5fc193e7325d4 /coreengine/viewdisplayreplay.c | |
parent | 6972a59e1b86989167fb3f3b2b1dc02612d72b4a (diff) | |
download | vdr-plugin-skindesigner-c3f7a2cfdf876ff0980e2838c5dbc65ad998404a.tar.gz vdr-plugin-skindesigner-c3f7a2cfdf876ff0980e2838c5dbc65ad998404a.tar.bz2 |
Fixed a bug in timeshift mode that prevented the progress bar from updating in pause mode
Diffstat (limited to 'coreengine/viewdisplayreplay.c')
-rw-r--r-- | coreengine/viewdisplayreplay.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/coreengine/viewdisplayreplay.c b/coreengine/viewdisplayreplay.c index f871afb..db767dc 100644 --- a/coreengine/viewdisplayreplay.c +++ b/coreengine/viewdisplayreplay.c @@ -142,6 +142,7 @@ void cViewReplay::PreCache(void) { void cViewReplay::ClearVariables(void) { cView::ClearVariables(); + recording = NULL; modeOnly = false; lastFlush = 0; lastFlushModeOnly = 0; @@ -171,6 +172,7 @@ void cViewReplay::SetTimeShift(int framesTotal, int timeShiftLength) { } void cViewReplay::SetRecording(const cRecording *recording) { + this->recording = recording; if (veRecTitle) { veRecTitle->Set(recording); } @@ -180,6 +182,7 @@ void cViewReplay::SetRecording(const cRecording *recording) { if (veScraperContent) { veScraperContent->Set(recording); } + SetTimeShiftValues(); } void cViewReplay::GetGlobalTimers(void) { @@ -189,7 +192,7 @@ void cViewReplay::GetGlobalTimers(void) { } } -void cViewReplay::SetTimeShiftValues(const cRecording *recording) { +void cViewReplay::SetTimeShiftValues(void) { if (!recording) return; bool isTimeShift = false; @@ -220,6 +223,7 @@ void cViewReplay::SetTimeShiftValues(const cRecording *recording) { } void cViewReplay::SetTitle(const char *title) { + recording = NULL; if (veRecTitle) { veRecTitle->Set(title); } @@ -259,6 +263,7 @@ void cViewReplay::SetEndTime(int current, int total) { } void cViewReplay::SetProgressbar(int current, int total) { + SetTimeShiftValues(); if (veProgressbar) veProgressbar->Set(current, total, timeShiftActive, timeShiftFramesTotal); Render((int)eVeDisplayReplay::progressbar); |