From ae55311f19ecee9b64c6fcb2c41d97739826284b Mon Sep 17 00:00:00 2001
From: Roger Siddons <dizygotheca@ntlworld.com>
Date: Thu, 5 Nov 2015 14:42:22 +0000
Subject: [PATCH] Scheduler: Allow restarted, failing recordings to be stopped
If a restarted recording starts to fail, it cannot be stopped (again).
The scheduler immediately restarts it each time.
Fixes part of 12281
diff --git a/mythtv/libs/libmythtv/recordinginfo.cpp b/mythtv/libs/libmythtv/recordinginfo.cpp
index 5acf556..b4858b2 100644
a
|
b
|
void RecordingInfo::ReactivateRecording(void) |
1228 | 1228 | */ |
1229 | 1229 | void RecordingInfo::AddHistory(bool resched, bool forcedup, bool future) |
1230 | 1230 | { |
1231 | | bool dup = (GetRecordingStatus() == RecStatus::Recorded || forcedup); |
| 1231 | bool dup = (forcedup || |
| 1232 | GetRecordingStatus() == RecStatus::Recorded || |
| 1233 | GetRecordingStatus() == RecStatus::Failed); |
1232 | 1234 | RecStatus::Type rs = (GetRecordingStatus() == RecStatus::CurrentRecording && |
1233 | 1235 | !future) ? RecStatus::PreviousRecording : GetRecordingStatus(); |
1234 | 1236 | LOG(VB_SCHEDULE, LOG_INFO, QString("AddHistory: %1/%2, %3, %4, %5/%6") |