filesrc: do not mistake short reads for EOS
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 12 Dec 2011 13:05:36 +0000 (13:05 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 16 Dec 2011 11:39:57 +0000 (11:39 +0000)
commit85855f3506ae962c31cb646320f4215a72e6c6d5
tree7e66f813a356ee2179ce1432c6c0dadff9e00f0a
parente96efca6a763bf4ce085288474c93f48ba728201
filesrc: do not mistake short reads for EOS

While local filesystems will usually not cause short reads,
this may happen on seekable files on some remote filesystems.
Instead, loop till we get the requested amount of data, or
an actual EOS (ie, 0 bytes).

https://bugzilla.gnome.org/show_bug.cgi?id=665921
plugins/elements/gstfilesrc.c