ffm_read_write_index returns a 64bit value,
Github: Closes #185
{
int fd;
int ret;
+ int64_t ret64;
if (c->stream->feed_opened) {
http_log("Stream feed '%s' was not opened\n",
return ret;
}
} else {
- ret = ffm_read_write_index(fd);
- if (ret < 0) {
+ ret64 = ffm_read_write_index(fd);
+ if (ret64 < 0) {
http_log("Error reading write index from feed file '%s': %s\n",
c->stream->feed_filename, strerror(errno));
- return ret;
+ return ret64;
}
- c->stream->feed_write_index = ret;
+ c->stream->feed_write_index = ret64;
}
c->stream->feed_write_index = FFMAX(ffm_read_write_index(fd),