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

Rémi Denis-Courmont remi at remlab.net
Sun Jun 5 11:33:15 CEST 2016

Le 2016-06-04 15:03, Filip Roséen a écrit :
> 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.

Probably OK. I don't have a test case so...

Rémi Denis-Courmont

More information about the vlc-devel mailing list