[vlc-devel] [PATCH] bluray: Fix build with libbluray < 1.0.0

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Jan 10 10:50:18 CET 2019


Fix #21613
---
 modules/access/bluray.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 9fe2cf37d1..b2a9802e57 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -2128,6 +2128,7 @@ static void bluraySendOverlayToVout(demux_t *p_demux, int plane, bluray_overlay_
 static bool blurayTitleIsRepeating(BLURAY_TITLE_INFO *title_info,
                                    unsigned repeats, unsigned ratio)
 {
+#if BLURAY_VERSION >= BLURAY_VERSION_CODE(1, 0, 0)
     const BLURAY_CLIP_INFO *prev = NULL;
     unsigned maxrepeats = 0;
     unsigned sequence = 0;
@@ -2160,6 +2161,9 @@ static bool blurayTitleIsRepeating(BLURAY_TITLE_INFO *title_info,
     }
     return (maxrepeats > repeats &&
             (100 * maxrepeats / title_info->chapter_count) >= ratio);
+#else
+    return false;
+#endif
 }
 
 static void blurayUpdateTitleInfo(input_title_t *t, BLURAY_TITLE_INFO *title_info)
-- 
2.20.1



More information about the vlc-devel mailing list