Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

RingBuffer: Make a few more attempts to read when oldfile=true.

Refs #10490.  This works around a problem, but the root cause is still
under investigation.
  • Loading branch information...
commit 1f5962a8e56968b9ff669d7ee425708461867b1f 1 parent cffed2b
@stichnot stichnot authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 mythtv/libs/libmythtv/fileringbuffer.cpp
View
6 mythtv/libs/libmythtv/fileringbuffer.cpp
@@ -453,8 +453,8 @@ int FileRingBuffer::safe_read(int fd, void *data, uint sz)
tot += ret;
}
- if (oldfile)
- break;
+ //if (oldfile)
+ //break;
if (ret == 0) // EOF returns 0
{
@@ -465,7 +465,7 @@ int FileRingBuffer::safe_read(int fd, void *data, uint sz)
// 0.36 second timeout for livetvchain with usleep(60000),
// or 2.4 seconds if it's a new file less than 30 minutes old.
- if (zerocnt >= (livetvchain ? 6 : 40))
+ if (zerocnt >= (oldfile ? 4 : (livetvchain ? 6 : 40)))
{
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.