demux/ts: remove redundant test (cosmetic)
authorAnthony Loiseau <thannoy@actech-innovation.com>
Fri, 10 Jul 2009 14:10:14 +0000 (16:10 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 10 Jul 2009 15:02:43 +0000 (17:02 +0200)
Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
modules/demux/ts.c

index 71341ce..19d9db5 100644 (file)
@@ -3852,21 +3852,18 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
         }
         else if( p_dr->i_tag == 0x05 )
         {
-            if( p_dr->i_tag == 0x05 )
+            /* Registration Descriptor */
+            if( p_dr->i_length != 4 )
             {
-                /* Registration Descriptor */
-                if( p_dr->i_length != 4 )
-                {
-                    msg_Warn( p_demux, "invalid Registration Descriptor" );
-                }
-                else
+                msg_Warn( p_demux, "invalid Registration Descriptor" );
+            }
+            else
+            {
+                msg_Dbg( p_demux, " * descriptor : registration %4.4s", p_dr->p_data );
+                if( !memcmp( p_dr->p_data, "HDMV", 4 ) )
                 {
-                    msg_Dbg( p_demux, " * descriptor : registration %4.4s", p_dr->p_data );
-                    if( !memcmp( p_dr->p_data, "HDMV", 4 ) )
-                    {
-                        /* Blu-Ray */
-                        b_hdmv = true;
-                    }
+                    /* Blu-Ray */
+                    b_hdmv = true;
                 }
             }
         }