Commit cf543be6 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

bluray: fix incorrect current title in Playback menu

Menu was showing new title even if title selection failed.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e2115fed
...@@ -1560,8 +1560,11 @@ static int blurayControl(demux_t *p_demux, int query, va_list args) ...@@ -1560,8 +1560,11 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
case DEMUX_SET_TITLE: case DEMUX_SET_TITLE:
{ {
int i_title = (int)va_arg(args, int); 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; return VLC_EGENERIC;
}
break; break;
} }
case DEMUX_SET_SEEKPOINT: case DEMUX_SET_SEEKPOINT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment