[vlc-commits] access: bluray: drain on end of title
Francois Cartegnie
git at videolan.org
Tue Oct 30 18:12:43 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 22 13:29:31 2018 +0200| [d646475d202c067e536cb6629e504a9c84f2b986] | committer: Francois Cartegnie
access: bluray: drain on end of title
(cherry picked from commit 0cc37b09515b9b585c0cac8875351616a4049c11)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d646475d202c067e536cb6629e504a9c84f2b986
---
modules/access/bluray.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index ab609d07dc..9ae069593c 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -2602,7 +2602,12 @@ static void blurayHandleEvent(demux_t *p_demux, const BD_EVENT *e)
es_out_Control(p_sys->p_out, BLURAY_ES_OUT_CONTROL_FLAG_DISCONTINUITY);
break;
case BD_EVENT_END_OF_TITLE:
- p_sys->b_pl_playing = false;
+ if(p_sys->b_pl_playing)
+ {
+ notifyDiscontinuityToParser(p_sys);
+ blurayRestartParser(p_demux, false);
+ p_sys->b_pl_playing = false;
+ }
break;
case BD_EVENT_IDLE:
/* nothing to do (ex. BD-J is preparing menus, waiting user input or running animation) */
More information about the vlc-commits
mailing list