Skip to content
Permalink
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
stichnot committed Apr 10, 2012
1 parent cffed2b commit 1f5962a8e56968b9ff669d7ee425708461867b1f
Showing with 3 additions and 3 deletions.
  1. +3 −3 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;
}

0 comments on commit 1f5962a

Please sign in to comment.
You can’t perform that action at this time.