input: fix skipping data in stream-oriented access
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jul 2016 14:36:00 +0000 (17:36 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jul 2016 14:39:19 +0000 (17:39 +0300)
commitf9c09233e3c549e6a9c040c8a743f511b5fd239d
treee9a0c01030934739d9a41511e28d939e0e9b255f
parent40608ad1d8d90598bdc8d5bdcfbbb4dfd1a5a697
input: fix skipping data in stream-oriented access

Now that stream cache and stream/access wrapper are separated the later
must handle skipping data (by "reading into" a NULL buffer). This was
done correctly for block-oriented plugins, but not stream-oriented
ones. This patch simply adds a dummy buffer to read into in the
unlikely event that it is needed.

(Typically one of the stream cache plugins takes care of this, so this
bug was mostly invisible.)

Pointed-out-by: Filip Roséen <filip@videolabs.io>
src/input/access.c