]> git.sesse.net Git - vlc/commitdiff
* modules/demux/ts.c: When a packet is lost, flag a discontinuity, do not
authorChristophe Massiot <massiot@videolan.org>
Wed, 21 Apr 2004 15:55:17 +0000 (15:55 +0000)
committerChristophe Massiot <massiot@videolan.org>
Wed, 21 Apr 2004 15:55:17 +0000 (15:55 +0000)
  trash the PES packet (the rest of the PES can still be used, and anyway
  the decoder must be aware that a discontinuity happened).

modules/demux/ts.c

index 38a889f695603f620c56eaab39b5b6216d10e547..2b2d39472df6efa81960cd66a26a57474bea2667 100644 (file)
@@ -1032,8 +1032,7 @@ static vlc_bool_t GatherPES( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
 
             if( pid->es->p_pes )
             {
-                block_ChainRelease( pid->es->p_pes );
-                pid->es->p_pes = NULL;
+                pid->es->p_pes->i_flags |= BLOCK_FLAG_DISCONTINUITY;
             }
         }
     }