Commit d204b593 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbinfo: if source is from file then use current file offset

Using the current date for capture time makes no sense when the source is a file.
parent 7eee9dfb
......@@ -313,7 +313,11 @@ static void *dvbinfo_capture(void *data)
continue;
}
buffer->i_date = mdate();
/* if file then use current fileoffset */
if (param->b_file)
buffer->i_date = lseek(param->fd_in, 0, SEEK_CUR);
else
buffer->i_date = mdate();
/* check fifo size */
if (fifo_size(capture->fifo) >= param->threshold)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment