[vlc-commits] demux: timestamps_filter: always use new pcr offset for spu

Francois Cartegnie git at videolan.org
Mon Jan 27 23:22:49 CET 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 24 15:26:19 2020 +0100| [ce41f111ac7f40e0628ec4661a0a0d42914da3bd] | committer: Francois Cartegnie

demux: timestamps_filter: always use new pcr offset for spu

(cherry picked from commit 0bffc63671728c174d69463de1be9fd721447a21)

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

 modules/demux/timestamps_filter.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/timestamps_filter.h b/modules/demux/timestamps_filter.h
index e884d20c61..e2c85d6e94 100644
--- a/modules/demux/timestamps_filter.h
+++ b/modules/demux/timestamps_filter.h
@@ -264,7 +264,7 @@ static int timestamps_filter_es_out_Send(es_out_t *out, es_out_id_t *id, block_t
     }
     else /* PCR had discontinuity, we're in a new segment */
     {
-        if(cur->tf.mva.i_packet == 1)
+        if(cur->tf.mva.i_packet == 1 || !cur->contiguous)
         {
           cur->tf.sync.stream = p_sys->pcrtf.sync.stream;
           cur->tf.sync.contiguous = p_sys->pcrtf.sync.contiguous;



More information about the vlc-commits mailing list