Skip to content

Commit

Permalink
RingBuffer: Add a missing file handle check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Jul 11, 2011
1 parent 6443825 commit 47aae2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/ringbuffer.cpp
Expand Up @@ -1091,7 +1091,7 @@ int RingBuffer::ReadDirect(void *buf, int count, bool peek)
// seek should always succeed since we were at this position
if (remotefile)
remotefile->Seek(old_pos, SEEK_SET);
else
else if (fd2 >= 0)
lseek64(fd2, old_pos, SEEK_SET);
}
else
Expand Down

0 comments on commit 47aae2c

Please sign in to comment.