[vlc-devel] [PATCH] Support the Metacube protocol when streaming over HTTP.

Rafaël Carré funman at videolan.org
Thu Feb 20 16:55:44 CET 2014


On 02/20/14 16:39, Steinar H. Gunderson wrote:
> On Thu, Feb 20, 2014 at 08:14:58AM +0100, Denis Charmet wrote:
>>> +            p_buffer = block_Realloc( p_buffer, sizeof( hdr ), p_buffer->i_buffer );
>> Check return and it will be good.
> 
> What is the right behavior on NULL return (which I guess is what you want me
> to check for)?

It will have been released but not chain released.

> Will it automatically have been chain-released, so I can just
> do return VLC_ENOMEM?

> Or do I need to keep track of the old version of
> p_buffer and chain-release that?

> Or perhaps p_buffer->p_next and chain-release that?

That would be the one, yes.

I often check src/misc/block.c to see what it's doing :)

> /* Steinar */
> 



More information about the vlc-devel mailing list