[vlc-commits] bluray: Fix build with libbluray < 1.0.0
Hugo Beauzée-Luyssen
git at videolan.org
Mon Jan 14 10:06:32 CET 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jan 10 10:47:47 2019 +0100| [aa9c788792344b1849e4e1f308e0bebe909dc93f] | committer: Hugo Beauzée-Luyssen
bluray: Fix build with libbluray < 1.0.0
Fix #21613
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa9c788792344b1849e4e1f308e0bebe909dc93f
---
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)
More information about the vlc-commits
mailing list