diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
index bf15151..4d23e9b 100644
a
|
b
|
void TVRec::run(void) |
1300 | 1300 | pendingRecordings.find(cardid) != pendingRecordings.end(); |
1301 | 1301 | pendingRecLock.unlock(); |
1302 | 1302 | |
| 1303 | const int time_out = 30; |
| 1304 | bool debug_start_new = false; |
| 1305 | if (!debugNextRecTime.isValid()) |
| 1306 | debugNextRecTime = now.addSecs(time_out+90); |
| 1307 | if (now >= debugNextRecTime) |
| 1308 | { |
| 1309 | if (curRecording && |
| 1310 | (now > curRecording->GetRecordingStartTime().addSecs(60))) |
| 1311 | { |
| 1312 | debug_start_new = true; |
| 1313 | } |
| 1314 | debugNextRecTime = now.addSecs(time_out); |
| 1315 | } |
| 1316 | |
| 1317 | |
1303 | 1318 | if (has_rec && (has_finish || (now > recordEndTime))) |
1304 | 1319 | { |
1305 | 1320 | SetPseudoLiveTVRecording(NULL); |
1306 | 1321 | } |
1307 | 1322 | else if (!has_rec && !rec_soon && curRecording && |
1308 | | (now >= curRecording->GetScheduledEndTime())) |
| 1323 | (now >= curRecording->GetScheduledEndTime() || |
| 1324 | debug_start_new)) |
1309 | 1325 | { |
1310 | 1326 | if (!switchingBuffer) |
1311 | 1327 | { |
… |
… |
void TVRec::run(void) |
1316 | 1332 | now.toString(Qt::ISODate) + " >= " + |
1317 | 1333 | curRecording->GetScheduledEndTime(ISODate) + |
1318 | 1334 | QString("(%1) ))") |
1319 | | .arg(now >= curRecording->GetScheduledEndTime())); |
| 1335 | .arg(now >= curRecording->GetScheduledEndTime()) + |
| 1336 | QString("debug_start_new(%1) ))") |
| 1337 | .arg(debug_start_new)); |
1320 | 1338 | |
1321 | 1339 | switchingBuffer = true; |
1322 | 1340 | |
diff --git a/mythtv/libs/libmythtv/tv_rec.h b/mythtv/libs/libmythtv/tv_rec.h
index ce54bff..018fcf4 100644
a
|
b
|
class MTV_PUBLIC TVRec : public SignalMonitorListener, public QRunnable |
387 | 387 | |
388 | 388 | // LiveTV file chain |
389 | 389 | LiveTVChain *tvchain; |
| 390 | QDateTime debugNextRecTime; |
390 | 391 | |
391 | 392 | // RingBuffer info |
392 | 393 | RingBuffer *ringBuffer; |