[vlc-commits] bluray: Fix build with libbluray < 1.0.0
Hugo Beauzée-Luyssen
git at videolan.org
Mon Jan 14 11:35:11 CET 2019
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jan 10 10:47:47 2019 +0100| [b2d96b5966483746f953f1bc5c4ee181711fddb8] | committer: Hugo Beauzée-Luyssen
bluray: Fix build with libbluray < 1.0.0
Fix #21613
(cherry picked from commit aa9c788792344b1849e4e1f308e0bebe909dc93f)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=b2d96b5966483746f953f1bc5c4ee181711fddb8
---
modules/access/bluray.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 09d8d1075b..f473f33aa7 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1960,6 +1960,7 @@ static void bluraySendOverlayToVout(demux_t *p_demux, bluray_overlay_t *p_ov)
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;
@@ -1992,6 +1993,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