cRecord: fix compiler warning (type mismatch)

Origin commit data
------------------
Branch: master
Commit: 88b8aa7b8f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-05-05 (Sun, 05 May 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-05-05 20:14:12 +02:00
parent 402ec04fcf
commit 6f49d0294d

View File

@@ -174,7 +174,6 @@ void cRecord::RecordThread()
lt_info("%s: begin\n", __func__);
#define BUFSIZE (1 << 20) /* 1MB */
#define READSIZE (BUFSIZE / 16)
ssize_t r = 0;
int buf_pos = 0;
int queued = 0;
uint8_t *buf;
@@ -197,6 +196,7 @@ void cRecord::RecordThread()
dmx->Start();
bool overflow = false;
int r = 0;
while (exit_flag == RECORD_RUNNING)
{
if (buf_pos < BUFSIZE)
@@ -204,10 +204,10 @@ void cRecord::RecordThread()
int toread = BUFSIZE - buf_pos;
if (toread > READSIZE)
toread = READSIZE;
r = dmx->Read(buf + buf_pos, toread, 50);
lt_debug("%s: buf_pos %6d r %6d / %6d\n", __func__,
buf_pos, (int)r, BUFSIZE - buf_pos);
if (r < 0)
ssize_t s = dmx->Read(buf + buf_pos, toread, 50);
lt_debug("%s: buf_pos %6d s %6d / %6d\n", __func__,
buf_pos, (int)s, BUFSIZE - buf_pos);
if (s < 0)
{
if (errno != EAGAIN && (errno != EOVERFLOW || !overflow))
{
@@ -220,7 +220,7 @@ void cRecord::RecordThread()
else
{
overflow = false;
buf_pos += r;
buf_pos += s;
}
}
else