[vlc-devel] [PATCH] stream_filter/cache_block: fix premature EOF

Filip Roséen filip at videolabs.io
Sat Jun 4 15:03:48 CEST 2016

On 16/06/04 14:58, Filip Roséen wrote:

> AStreamReadBlock would potentially return 0 because the current data block
> (denoted by "p_sys->p_current") was exhausted, even though there might be more
> data in the next data block ("p_sys->p_current->p_next").
> This patch fixes the issue by calling the function one more time if this is the
> case. Given the check for EOF in the beginning of the function, it will abort
> correctly if we are /really/ out of data.

Just realized that the above commit message is misleading and an artifact from a
previous fix that I later rebased. Attached to this email is a patch that
actually contains a commit message that makes sense.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160604/c36bc597/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-stream_filter-cache_block-fix-premature-EOF.patch
Type: text/x-diff
Size: 1526 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160604/c36bc597/attachment.patch>

More information about the vlc-devel mailing list