[vlc-commits] access: bluray: notify libbluray of ES deselection

Francois Cartegnie git at videolan.org
Tue Nov 13 16:01:18 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 13 15:33:40 2018 +0100| [a90ccde8bd994a4f65ddfffc103ed83ad054ecfb] | committer: Francois Cartegnie

access: bluray: notify libbluray of ES deselection

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

 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 cd8f648cfb..4de22d84ae 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -2227,7 +2227,12 @@ static void blurayOnUserStreamSelection(demux_sys_t *p_sys, int i_pid)
 {
     vlc_mutex_lock(&p_sys->pl_info_lock);
 
-    if (p_sys->p_clip_info) {
+    if(i_pid == -AUDIO_ES)
+        bd_select_stream(p_sys->bluray, BLURAY_AUDIO_STREAM, 0, 0);
+    else if(i_pid == -SPU_ES)
+        bd_select_stream(p_sys->bluray, BLURAY_PG_TEXTST_STREAM, 0, 0);
+    else if (p_sys->p_clip_info)
+    {
 
         if ((i_pid & 0xff00) == 0x1100) {
             // audio



More information about the vlc-commits mailing list