From 09925e6113d1b2dd9b68c8c3196371ef8f7f77ee Mon Sep 17 00:00:00 2001 From: kamel5 Date: Fri, 30 Apr 2021 17:56:21 +0200 Subject: 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. --- coreengine/viewdisplayreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreengine') 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) -- cgit v1.2.3