splitfilesrc: check bytes actually read, just in case
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 10 Oct 2011 17:28:11 +0000 (18:28 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 30 Nov 2011 16:39:33 +0000 (16:39 +0000)
commite6c4979a424af1e3bf6ac44c1a99677400f2464c
tree432aa56bbc433d5dd7cd9f8cb2f4d040f6f55a84
parenta595df5daa76910356ea65397e0f0bb7bc2c4e14
splitfilesrc: check bytes actually read, just in case

Handle corner case where we try to read beyond the end of the
last file part, in which case we want to return a short read.
If we get fewer bytes than expected for any other file part,
we should just error out, since something fishy's going on
then.
gst/multifile/gstsplitfilesrc.c