summaryrefslogtreecommitdiff
path: root/coreengine
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-04-30 17:56:21 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-05-04 14:38:52 +0200
commit09925e6113d1b2dd9b68c8c3196371ef8f7f77ee (patch)
tree0d722b8ffc0e986c1a37ab84084bef937134f32a /coreengine
parent4b2861e030d7207a3182f02072adda098fa993fe (diff)
downloadvdr-plugin-skindesigner-09925e6113d1b2dd9b68c8c3196371ef8f7f77ee.tar.gz
vdr-plugin-skindesigner-09925e6113d1b2dd9b68c8c3196371ef8f7f77ee.tar.bz2
Fix Incorrect detection of a recording that is currently running
To set timeShiftActive correctly, it is not sufficient to compare the name of the recording and the timer in cGlobalTimers::IsRecording() if no short text is available. Therefore, the start time of both is now also compared.
Diffstat (limited to 'coreengine')
-rw-r--r--coreengine/viewdisplayreplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreengine/viewdisplayreplay.c b/coreengine/viewdisplayreplay.c
index 1ee8684..757c898 100644
--- a/coreengine/viewdisplayreplay.c
+++ b/coreengine/viewdisplayreplay.c
@@ -177,9 +177,9 @@ void cViewReplay::GetGlobalTimers(void) {
}
void cViewReplay::SetTimeShiftValues(int current, int total) {
+ timeShiftActive = NoRec;
if (!recording)
return;
- timeShiftActive = NoRec;
#if APIVERSNUM >= 20101
int usage = recording->IsInUse();
if (usage & ruTimer)