[vlc-commits] access: bluray: reset pcr on every demux initiated random access
Francois Cartegnie
git at videolan.org
Tue Oct 30 18:12:44 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 22 20:55:28 2018 +0200| [768eaeddb5d0733e3f7e96d2bf893dacac9d488f] | committer: Francois Cartegnie
access: bluray: reset pcr on every demux initiated random access
core can't cope with diff > 30s
(cherry picked from commit aa290bfdd2000cfee36be92c9a479b0ac52c0ad2)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=768eaeddb5d0733e3f7e96d2bf893dacac9d488f
---
modules/access/bluray.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 9ae069593c..a0c9c15f1c 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -2082,6 +2082,7 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
}
blurayRestartParser(p_demux, true);
notifyDiscontinuityToParser(p_sys);
+ es_out_Control(p_demux->out, ES_OUT_RESET_PCR);
es_out_Control(p_sys->p_out, BLURAY_ES_OUT_CONTROL_FLAG_DISCONTINUITY);
break;
}
@@ -2091,6 +2092,7 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
bd_seek_chapter(p_sys->bluray, i_chapter);
blurayRestartParser(p_demux, true);
notifyDiscontinuityToParser(p_sys);
+ es_out_Control(p_demux->out, ES_OUT_RESET_PCR);
p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
break;
}
@@ -2606,6 +2608,7 @@ static void blurayHandleEvent(demux_t *p_demux, const BD_EVENT *e)
{
notifyDiscontinuityToParser(p_sys);
blurayRestartParser(p_demux, false);
+ es_out_Control(p_demux->out, ES_OUT_RESET_PCR);
p_sys->b_pl_playing = false;
}
break;
More information about the vlc-commits
mailing list