[vlc-devel] [PATCH] decoder: assert that out_pool is valid from buffer_new

Rémi Denis-Courmont remi at remlab.net
Tue Mar 10 12:25:42 CET 2020


LGTM.

Le 10 mars 2020 09:58:55 GMT+02:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>Once the format is configured, the out_pool need to stay valid during
>the life
>time of the module or until a new format is requested.
>---
> src/input/decoder.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/src/input/decoder.c b/src/input/decoder.c
>index 7dbc2b8f8d..be6c916342 100644
>--- a/src/input/decoder.c
>+++ b/src/input/decoder.c
>@@ -650,6 +650,7 @@ static picture_t *ModuleThread_NewVideoBuffer(
>decoder_t *p_dec )
> {
>     struct decoder_owner *p_owner = dec_get_owner( p_dec );
>     assert( p_owner->p_vout );
>+    assert( p_owner->out_pool );
> 
>     picture_t *pic = picture_pool_Wait( p_owner->out_pool );
>     if (pic)
>-- 
>2.20.1
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200310/0e4d2cfe/attachment.html>


More information about the vlc-devel mailing list