From 62b3d96e7f9187c3acc5c764e61af556b66621c9 Mon Sep 17 00:00:00 2001 From: Renchi Raju Date: Thu, 23 Feb 2006 10:24:13 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ common | 2 +- plugins/elements/gstfilesrc.c | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 72a386d..2ab3567 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-02-23 Tim-Philipp Müller + + * 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 + 2006-02-21 Jan Schmidt * gst/Makefile.am: diff --git a/common b/common index c30611a..c09cd18 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit c30611ac38336030fed6d258c6e558cc537adbc5 +Subproject commit c09cd18d328f740ac532377fa5605b0f712cc6fd diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index bceb233..72aa74f 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -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); -- 2.7.4