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,6 +313,10 @@ static void *dvbinfo_capture(void *data) ...@@ -313,6 +313,10 @@ static void *dvbinfo_capture(void *data)
continue; continue;
} }
/* 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(); buffer->i_date = mdate();
/* check fifo size */ /* check fifo size */
......
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