[vlc-commits] demux: ogg: fix glitches on chained content

Francois Cartegnie git at videolan.org
Sun Jun 18 19:40:43 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jun 18 19:39:00 2017 +0200| [0d8e0b8bfbcfa4a4cc3021f2174659ccd43bfd49] | committer: Francois Cartegnie

demux: ogg: fix glitches on chained content

refs #18401
refs http://ai-radio.org/128.ogg

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

 modules/demux/ogg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index b561c804dd..129f02bf40 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1110,7 +1110,8 @@ static void Ogg_SendOrQueueBlocks( demux_t *p_demux, logical_stream_t *p_stream,
                                    block_t *p_block )
 {
     demux_sys_t *p_ogg = p_demux->p_sys;
-    if ( !p_stream->p_es || p_stream->prepcr.pp_blocks || p_stream->i_pcr == VLC_TS_UNKNOWN )
+    if ( (!p_stream->p_es || p_stream->prepcr.pp_blocks || p_stream->i_pcr == VLC_TS_UNKNOWN) &&
+         p_ogg->i_nzpcr_offset == 0 /* Not on chained streams */ )
     {
         if ( !p_block ) return;
         if ( p_stream->prepcr.pp_blocks )



More information about the vlc-commits mailing list