mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
filesrc: don't try to seek to -1 offset
The offset can be -1 when we are configured in TIME format. Instead of failing the seek and erroring, do what and offset of -1 is supposed to do and simply read from the current offset.
This commit is contained in:
parent
74adc33982
commit
c80ea6895d
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ gst_file_src_fill (GstBaseSrc * basesrc, guint64 offset, guint length,
|
|||
|
||||
src = GST_FILE_SRC_CAST (basesrc);
|
||||
|
||||
if (G_UNLIKELY (src->read_position != offset)) {
|
||||
if (G_UNLIKELY (offset != -1 && src->read_position != offset)) {
|
||||
off_t res;
|
||||
|
||||
res = lseek (src->fd, offset, SEEK_SET);
|
||||
|
|
Loading…
Reference in a new issue