GNOME Bugzilla – Bug 400656
[PATCH] filesrc seekability detection fix (NFS and 2GB+ files)
Last modified: 2007-01-25 18:06:34 UTC
With the current version of filesrc, files larger than 2 gigabytes on NFS are considered seekable, even if the seeking beyond 2GB boundary is actually impossible. This can cause the pipeline fail later. The attached patch modifies filesrc.c to test the seekability by seeking to the end of the file.
Created attachment 81204 [details] [review] Seekability detection fix for NFS and 2GB+ files.
Thanks, committed: 2007-01-25 Sebastian Dröge <slomo@circular-chaos.org> Patch by: Jindrich Makovicka <jindrich.makovick at itonis dot tv> * plugins/elements/gstfilesrc.c: (gst_file_src_start): If not using mmap'ed files try to seek to the end instead of the start to determine whether we can seek at all. This fixes the case of 2GB+ files over NFS, where seeks in the first 2GB can succeed but seeks for everything afterwards fail. Fixes #400656