plugins/elements/gstfilesrc.c: Update src->read_position after a seek when not using...
authorRenchi Raju <renchi@gmail.com>
Thu, 23 Feb 2006 10:24:13 +0000 (10:24 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 23 Feb 2006 10:24:13 +0000 (10:24 +0000)
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>

ChangeLog
common
plugins/elements/gstfilesrc.c

index 72a386d..2ab3567 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
diff --git a/common b/common
index c30611a..c09cd18 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit c30611ac38336030fed6d258c6e558cc537adbc5
+Subproject commit c09cd18d328f740ac532377fa5605b0f712cc6fd
index bceb233..72aa74f 100644 (file)
@@ -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);