GNOME Bugzilla – Bug 404569
[filesrc] Unexpected end of file
Last modified: 2007-02-05 13:16:42 UTC
There is a bug in filesrc resulting in "Unexpected end of file" for nonseekable regular files. The problem is that we do not have total length for nonseekable files. (See patch)
Created attachment 81922 [details] [review] Fix eos for nonseekable regular files One example of nonseekable regular file is a file mounted over nfs
(In reply to comment #1) > Created an attachment (id=81922) [edit] > Fix eos for nonseekable regular files Note that src->seekable is stronger condition that src->is_regular, this flag is not set for non-regular files.
Thanks, looks good. I'll commit it later.
Ok, committed: 2007-02-05 Sebastian Dröge <slomo@circular-chaos.org> Patch by: Michal Benes <michal dot benes at itonis dot tv> * plugins/elements/gstfilesrc.c: (gst_file_src_create_read): Correctly generate EOS for non-seekable files. We don't have a total length for them and would get an unexpected end of file if we only special-cased for regular files. (Fixes: #404569)