diff --git a/mythtv/libs/libmythbase/threadedfilewriter.cpp b/mythtv/libs/libmythbase/threadedfilewriter.cpp
old mode 100644
new mode 100755
index a3ec813..14ba241
a
|
b
|
uint ThreadedFileWriter::Write(const void *data, uint count) |
299 | 299 | left -= towrite; |
300 | 300 | } |
301 | 301 | |
302 | | LOG(VB_FILE, LOG_DEBUG, LOC + QString("Write(*, %1) total %2 cnt %3") |
303 | | .arg(count,4).arg(totalBufferUse).arg(writeBuffers.size())); |
| 302 | // LOG(VB_FILE, LOG_DEBUG, LOC + QString("Write(*, %1) total %2 cnt %3") |
| 303 | // .arg(count,4).arg(totalBufferUse).arg(writeBuffers.size())); |
304 | 304 | |
305 | 305 | return count; |
306 | 306 | } |
diff --git a/mythtv/libs/libmythtv/ringbuffer.cpp b/mythtv/libs/libmythtv/ringbuffer.cpp
old mode 100644
new mode 100755
index 5628863..fca398b
a
|
b
|
int RingBuffer::ReadPriv(void *buf, int count, bool peek) |
1394 | 1394 | LOG(VB_FILE, LOG_DEBUG, LOC + loc_desc + |
1395 | 1395 | QString(" @%1 -- begin").arg(rbrpos)); |
1396 | 1396 | |
| 1397 | if (count > 900000) |
| 1398 | { |
| 1399 | LOG(VB_FILE, LOG_WARNING, LOC + QString("ReadPriv > 900K (%1)").arg(count)); |
| 1400 | } |
1397 | 1401 | rwlock.lockForRead(); |
1398 | 1402 | if (writemode) |
1399 | 1403 | { |
diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
index b22e169..f0e47cb 100644
a
|
b
|
void TVRec::run(void) |
1348 | 1348 | pendingRecordings.find(cardid) != pendingRecordings.end(); |
1349 | 1349 | pendingRecLock.unlock(); |
1350 | 1350 | |
| 1351 | const int time_out = 180; |
| 1352 | bool debug_start_new = false; |
| 1353 | if (!debugNextRecTime.isValid()) |
| 1354 | debugNextRecTime = now.addSecs(time_out); |
| 1355 | if (now >= debugNextRecTime) |
| 1356 | { |
| 1357 | debug_start_new = true; |
| 1358 | debugNextRecTime = now.addSecs(time_out); |
| 1359 | } |
| 1360 | |
1351 | 1361 | if (has_rec && (has_finish || (now > recordEndTime))) |
1352 | 1362 | { |
1353 | 1363 | SetPseudoLiveTVRecording(NULL); |
1354 | 1364 | } |
1355 | 1365 | else if (!has_rec && !rec_soon && curRecording && |
1356 | | (now >= curRecording->GetScheduledEndTime())) |
| 1366 | (now >= curRecording->GetScheduledEndTime() || |
| 1367 | debug_start_new)) |
1357 | 1368 | { |
1358 | 1369 | if (!switchingBuffer) |
1359 | 1370 | { |
diff --git a/mythtv/libs/libmythtv/tv_rec.h b/mythtv/libs/libmythtv/tv_rec.h
index 0c2f00c..aa09f37 100644
a
|
b
|
class MTV_PUBLIC TVRec : public SignalMonitorListener, public QRunnable |
398 | 398 | |
399 | 399 | // LiveTV file chain |
400 | 400 | LiveTVChain *tvchain; |
| 401 | QDateTime debugNextRecTime; |
401 | 402 | |
402 | 403 | // RingBuffer info |
403 | 404 | RingBuffer *ringBuffer; |