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

bluray: use bd_menu_call() for Top Menu

- bd_menu_call() uses different UO mask (this is fixed also in libbluray git).
- bd_menu_call() stores last playback position.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b4899df6
......@@ -1422,16 +1422,19 @@ static int bluraySetTitle(demux_t *p_demux, int i_title)
demux_sys_t *p_sys = p_demux->p_sys;
if (p_sys->b_menu) {
int result;
if (i_title <= 0) {
msg_Dbg(p_demux, "Playing TopMenu Title");
result = bd_menu_call(p_sys->bluray, -1);
} else if (i_title >= (int)p_sys->i_title - 1) {
msg_Dbg(p_demux, "Playing FirstPlay Title");
i_title = BLURAY_TITLE_FIRST_PLAY;
result = bd_play_title(p_sys->bluray, BLURAY_TITLE_FIRST_PLAY);
} else {
msg_Dbg(p_demux, "Playing Title %i", i_title);
result = bd_play_title(p_sys->bluray, i_title);
}
if (bd_play_title(p_sys->bluray, i_title) == 0) {
if (result == 0) {
msg_Err(p_demux, "cannot play bd title '%d'", i_title);
return VLC_EGENERIC;
}
......
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