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

Thomas Guillem git at videolan.org
Tue Mar 10 17:14:19 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 10 08:58:55 2020 +0100| [b5fe394e417b2f452ceb8099e020aaeab7cb1a93] | committer: Thomas Guillem

decoder: assert that out_pool is valid from buffer_new

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5fe394e417b2f452ceb8099e020aaeab7cb1a93
---

 src/input/decoder.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index d868c21f23..d09a849600 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)



More information about the vlc-commits mailing list