From 8cd02fcf912aae0213b63b84096a73c8688c398d Mon Sep 17 00:00:00 2001 From: j45 Date: Thu, 8 Apr 2010 16:32:05 +0000 Subject: [PATCH] add simple angle selection with bd_select_angle() does not yet do seamless angle changes. --- src/bluray.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bluray.c b/src/bluray.c index 2a03243a..f23a51b7 100644 --- a/src/bluray.c +++ b/src/bluray.c @@ -366,6 +366,16 @@ int bd_select_title(BLURAY *bd, uint32_t title_idx) return 0; } +int bd_select_angle(BLURAY *bd, int angle) +{ + if (bd->title == NULL) { + DEBUG(DBG_BLURAY, "Title not yet selected! (%p)\n", bd); + return 0; + } + bd->clip = nav_set_angle(bd->title, bd->clip, angle); + return 1; +} + uint64_t bd_get_title_size(BLURAY *bd) { return bd ? bd->s_size : UINT64_C(0); -- GitLab