[vlc-devel] [PATCH] bluray: always update chapters when playlist changes
Petri Hintukainen
phintuka at gmail.com
Tue Dec 1 11:34:58 CET 2015
Fixes chapters in titles that play multiple playlists
---
modules/access/bluray.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index a52d58e..92f5ab7 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1424,7 +1424,10 @@ static void blurayUpdateTitleInfo(input_title_t *t, BLURAY_TITLE_INFO *title_inf
{
t->i_length = FROM_TICKS(title_info->duration);
- if (!t->i_seekpoint) {
+ for (int i = 0; i < t->i_seekpoint; i++)
+ vlc_seekpoint_Delete( t->seekpoint[i] );
+ TAB_CLEAN(t->i_seekpoint, t->seekpoint);
+
for (unsigned int j = 0; j < title_info->chapter_count; j++) {
seekpoint_t *s = vlc_seekpoint_New();
if (!s) {
@@ -1434,7 +1437,6 @@ static void blurayUpdateTitleInfo(input_title_t *t, BLURAY_TITLE_INFO *title_inf
TAB_APPEND(t->i_seekpoint, t->seekpoint, s);
}
- }
}
static void blurayInitTitles(demux_t *p_demux, int menu_titles)
--
2.5.0
More information about the vlc-devel
mailing list