]> git.sesse.net Git - vlc/commitdiff
Require libbluray 0.5.0
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 25 Jan 2015 12:29:45 +0000 (13:29 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 25 Jan 2015 12:29:45 +0000 (13:29 +0100)
configure.ac
modules/access/bluray.c

index d748f428be06d64865593b84135de07428e1c443..e5a22c309a2a99aa1102fc47451df3d5e5506905 100644 (file)
@@ -1719,7 +1719,7 @@ PKG_ENABLE_MODULES_VLC([DVDNAV], [], [dvdnav > 4.9.0], [DVD with navigation inpu
 dnl
 dnl  Blu-ray Disc Support with libbluray
 dnl
-PKG_ENABLE_MODULES_VLC([BLURAY], [libbluray], [libbluray >= 0.3.0], (libbluray for Blu-ray disc support ) )
+PKG_ENABLE_MODULES_VLC([BLURAY], [libbluray], [libbluray >= 0.5.0], (libbluray for Blu-ray disc support ) )
 
 dnl
 dnl  OpenCV wrapper and example filters
index 85407351601a5e93f8a56a11e20fc29c60bffde9..4a46407379932da8574427237afae096fd31c3c3 100644 (file)
@@ -1164,18 +1164,13 @@ static void blurayUpdateTitleInfo(input_title_t *t, BLURAY_TITLE_INFO *title_inf
 static void blurayInitTitles(demux_t *p_demux, int menu_titles)
 {
     demux_sys_t *p_sys = p_demux->p_sys;
-#if BLURAY_VERSION < BLURAY_VERSION_CODE(0,5,0)
-    int64_t duration = 0;
-#endif
 
     /* get and set the titles */
     unsigned i_title = menu_titles;
 
     if (!p_sys->b_menu) {
         i_title = bd_get_titles(p_sys->bluray, TITLES_RELEVANT, 60);
-#if BLURAY_VERSION >= BLURAY_VERSION_CODE(0,5,0)
         p_sys->i_longest_title = bd_get_main_title(p_sys->bluray);
-#endif
     }
 
     for (unsigned int i = 0; i < i_title; i++) {
@@ -1188,12 +1183,6 @@ static void blurayInitTitles(demux_t *p_demux, int menu_titles)
             blurayUpdateTitleInfo(t, title_info);
             bd_free_title_info(title_info);
 
-#if BLURAY_VERSION < BLURAY_VERSION_CODE(0,5,0)
-            if (t->i_length > duration) {
-                duration = t->i_length;
-                p_sys->i_longest_title = i;
-            }
-#endif
         } else if (i == 0) {
             t->psz_name = strdup(_("Top Menu"));
         } else if (i == i_title - 1) {