Commit dd22509c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

bluray: Removing useless title management code.

As pointed by fenrir, this is already handled by the core.
(cherry picked from commit aef79d83)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a0019052
...@@ -148,8 +148,6 @@ static int blurayOpen( vlc_object_t *object ) ...@@ -148,8 +148,6 @@ static int blurayOpen( vlc_object_t *object )
demux_t *p_demux = (demux_t*)object; demux_t *p_demux = (demux_t*)object;
demux_sys_t *p_sys; demux_sys_t *p_sys;
char *pos_title;
int i_title = -1;
char bd_path[PATH_MAX] = { '\0' }; char bd_path[PATH_MAX] = { '\0' };
const char *error_msg = NULL; const char *error_msg = NULL;
...@@ -273,16 +271,9 @@ static int blurayOpen( vlc_object_t *object ) ...@@ -273,16 +271,9 @@ static int blurayOpen( vlc_object_t *object )
/* Registering overlay event handler */ /* Registering overlay event handler */
bd_register_overlay_proc(p_sys->bluray, p_demux, blurayOverlayProc); bd_register_overlay_proc(p_sys->bluray, p_demux, blurayOverlayProc);
} else { } else {
/* get title request */
if ((pos_title = strrchr(bd_path, ':'))) {
/* found character ':' for title information */
*(pos_title++) = '\0';
i_title = atoi(pos_title);
}
/* set start title number */ /* set start title number */
if (bluraySetTitle(p_demux, i_title) != VLC_SUCCESS) { if (bluraySetTitle(p_demux, p_sys->i_longest_title) != VLC_SUCCESS) {
msg_Err( p_demux, "Could not set the title %d", i_title ); msg_Err( p_demux, "Could not set the title %d", p_sys->i_longest_title );
goto error; goto error;
} }
} }
......
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