[vlc-commits] commit: Removed useless test (ts.c) (Laurent Aimar )

git at videolan.org git at videolan.org
Sun Oct 31 13:05:28 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Oct 31 12:32:29 2010 +0100| [37e0b5b4827a85fc92643fb2baf881c4d34a6df4] | committer: Laurent Aimar 

Removed useless test (ts.c)

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

 modules/demux/ts.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 1af2956..df8c54d 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1553,11 +1553,8 @@ static void PIDInit( ts_pid_t *pid, bool b_psi, ts_psi_t *p_owner )
         if( !b_old_valid )
         {
             pid->psi = xmalloc( sizeof( ts_psi_t ) );
-            if( pid->psi )
-            {
-                pid->psi->handle = NULL;
-                TAB_INIT( pid->psi->i_prg, pid->psi->prg );
-            }
+            pid->psi->handle = NULL;
+            TAB_INIT( pid->psi->i_prg, pid->psi->prg );
         }
         assert( pid->psi );
 



More information about the vlc-commits mailing list