mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
plugins/elements/gstfilesrc.c: Update src->read_position after a seek when not using mmap.
Original commit message from CVS: * plugins/elements/gstfilesrc.c: (gst_file_src_create_read): Update src->read_position after a seek when not using mmap. Fixes #332277, patch by: Renchi Raju <renchi gmail com>
This commit is contained in:
parent
e2cca3d699
commit
62b3d96e7f
3 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-02-23 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* plugins/elements/gstfilesrc.c: (gst_file_src_create_read):
|
||||
Update src->read_position after a seek when not using mmap.
|
||||
Fixes #332277, patch by: Renchi Raju <renchi gmail com>
|
||||
|
||||
2006-02-21 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* gst/Makefile.am:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit c30611ac38336030fed6d258c6e558cc537adbc5
|
||||
Subproject commit c09cd18d328f740ac532377fa5605b0f712cc6fd
|
|
@ -729,6 +729,8 @@ gst_file_src_create_read (GstFileSrc * src, guint64 offset, guint length,
|
|||
res = lseek (src->fd, offset, SEEK_SET);
|
||||
if (res < 0 || res != offset)
|
||||
goto seek_failed;
|
||||
|
||||
src->read_position = offset;
|
||||
}
|
||||
|
||||
buf = gst_buffer_new_and_alloc (length);
|
||||
|
|
Loading…
Reference in a new issue