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

Petri Hintukainen git at videolan.org
Thu Nov 12 12:54:57 CET 2015


vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Wed Nov 11 10:18:25 2015 +0200| [cf543be606c888d49064ffacc58b2bb9c1841d65] | committer: Jean-Baptiste Kempf

bluray: fix incorrect current title in Playback menu

Menu was showing new title even if title selection failed.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 f9863b7..18a9c78 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1560,8 +1560,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:



More information about the vlc-commits mailing list