[vlc-commits] dirac: remove useless if

Rémi Denis-Courmont git at videolan.org
Mon Aug 29 17:41:19 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 29 18:26:17 2011 +0300| [1c4f86f525a2a698c33c86173d9091226167d8be] | committer: Rémi Denis-Courmont

dirac: remove useless if

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

 modules/packetizer/dirac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/packetizer/dirac.c b/modules/packetizer/dirac.c
index c56aae7..e7143be 100644
--- a/modules/packetizer/dirac.c
+++ b/modules/packetizer/dirac.c
@@ -223,7 +223,7 @@ static dirac_block_encap_t *dirac_RemoveBlockEncap( block_t *p_block )
 {
     fake_block_t *p_fake = (fake_block_t *)p_block;
     dirac_block_encap_t *p_dbe = p_fake->p_priv;
-    if( !p_dbe ) return NULL;
+
     p_fake->p_priv = NULL;
     p_dbe->pf_blk_release = NULL;
     return p_dbe;



More information about the vlc-commits mailing list