[vlc-commits] cc: fix variable shadowing

Rémi Denis-Courmont git at videolan.org
Sun Jul 23 16:53:06 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 16:34:31 2017 +0300| [6a14bd53c3d36610763b7ff1330ae2664c4f469e] | committer: Rémi Denis-Courmont

cc: fix variable shadowing

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

 modules/codec/cc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index f7ef1e821a..9bbf7d6695 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -390,8 +390,7 @@ static void Push( decoder_t *p_dec, block_t *p_block )
 
     if( p_sys->i_queue >= CC_MAX_REORDER_SIZE )
     {
-        block_t *p_block = Pop( p_dec, true );
-        block_Release( p_block );
+        block_Release( Pop( p_dec, true ) );
         msg_Warn( p_dec, "Trashing a CC entry" );
     }
 



More information about the vlc-commits mailing list