[vlc-commits] kate: Remove useless if
Hugo Beauzée-Luyssen
git at videolan.org
Wed Nov 22 18:03:38 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Nov 22 17:41:20 2017 +0100| [43badef3905f076cda655c5ae281b1720b6c8dfa] | committer: Hugo Beauzée-Luyssen
kate: Remove useless if
p_block is checked for nullity in all code path leading to ProcessPacket
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43badef3905f076cda655c5ae281b1720b6c8dfa
---
modules/codec/kate.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index 3b62030534..cdff514f6e 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -647,8 +647,7 @@ static void *ProcessPacket( decoder_t *p_dec, kate_packet *p_kp,
{
subpicture_t *p_buf = DecodePacket( p_dec, p_kp, p_block );
- if( p_block )
- block_Release( p_block );
+ block_Release( p_block );
return p_buf;
}
}
More information about the vlc-commits
mailing list