[vlc-devel] [PATCH] bluray: fix incorrect current title in Playback menu

Petri Hintukainen phintuka at gmail.com
Wed Nov 11 09:18:25 CET 2015


Menu was showing new title even if title selection failed.
---
 modules/access/bluray.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index bbdabe7..7b5c204 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1572,8 +1572,11 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
     case DEMUX_SET_TITLE:
     {
         int i_title = (int)va_arg(args, int);
-        if (bluraySetTitle(p_demux, i_title) != VLC_SUCCESS)
+        if (bluraySetTitle(p_demux, i_title) != VLC_SUCCESS) {
+            /* make sure GUI restores the old setting in title menu ... */
+            p_demux->info.i_update |= INPUT_UPDATE_TITLE | INPUT_UPDATE_SEEKPOINT;
             return VLC_EGENERIC;
+        }
         break;
     }
     case DEMUX_SET_SEEKPOINT:
-- 
2.5.0



More information about the vlc-devel mailing list