[vlc-commits] access: bluray: drain on end of title

Francois Cartegnie git at videolan.org
Mon Oct 22 20:33:29 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 22 13:29:31 2018 +0200| [0cc37b09515b9b585c0cac8875351616a4049c11] | committer: Francois Cartegnie

access: bluray: drain on end of title

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

 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 65070b5105..a8324e832f 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -2700,7 +2700,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