]> git.sesse.net Git - vlc/commitdiff
Don't explicitly flag the block. Clement could you check if fixes the break of local...
authorJean-Paul Saman <jpsaman@videolan.org>
Thu, 11 Aug 2005 20:59:45 +0000 (20:59 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Thu, 11 Aug 2005 20:59:45 +0000 (20:59 +0000)
modules/demux/ts.c

index 12197283d0f9e7232ff55bd60f829dda44a3424c..68c67cd5f17b74a0bcf556d6479bb44ca8472432 100644 (file)
@@ -1655,13 +1655,14 @@ static vlc_bool_t GatherPES( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
         i_skip = 5 + p[4];
         if( p[4] > 0 )
         {
-            if( p[5]&0x80 )
+            /* discontinuity indicator found in stream */
+            b_discontinuity = (p[5]&0x80) ? VLC_TRUE : VLC_FALSE;
+            if( b_discontinuity && pid->es->p_pes )
             {
-                msg_Warn( p_demux, "discontinuity_indicator (pid=%d) "
-                          "ignored", pid->i_pid );
+                msg_Warn( p_demux, "discontinuity indicator (pid=%d) ",
+                            pid->i_pid );
+                /* pid->es->p_pes->i_flags |= BLOCK_FLAG_DISCONTINUITY; */
             }
-            /* discontinuity indicator found in stream */
-            b_discontinuity = p[5]&0x80 ? VLC_TRUE : VLC_FALSE;
             if( p[5]&0x40 )
                 msg_Dbg( p_demux, "random access indicator (pid=%d) ", pid->i_pid );
         }
@@ -1760,12 +1761,6 @@ static vlc_bool_t GatherPES( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
         }
     }
     
-    if( b_discontinuity && pid->es->p_pes )
-    {
-        msg_Warn( p_demux, "discontinuity indicator (pid=%d) ",
-                     pid->i_pid );
-        pid->es->p_pes->i_flags |= BLOCK_FLAG_DISCONTINUITY;
-    }
     return i_ret;
 }