[libbluray-devel] bd_play_title(): add special handling for Top Menu title

hpi1 git at videolan.org
Tue Oct 27 12:40:14 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Oct 27 13:33:37 2015 +0200| [ea300d260987921a4273ae19cafcf2882c921ae9] | committer: hpi1

bd_play_title(): add special handling for Top Menu title

Menu Call uses different UO mask.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=ea300d260987921a4273ae19cafcf2882c921ae9
---

 src/libbluray/bluray.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 2ab5ce3..ccb293e 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -3217,6 +3217,12 @@ static int _try_play_title(BLURAY *bd, unsigned title)
 int bd_play_title(BLURAY *bd, unsigned title)
 {
     int ret;
+
+    if (title == BLURAY_TITLE_TOP_MENU) {
+        /* menu call uses different UO mask */
+        return bd_menu_call(bd, -1);
+    }
+
     bd_mutex_lock(&bd->mutex);
     ret = _try_play_title(bd, title);
     bd_mutex_unlock(&bd->mutex);



More information about the libbluray-devel mailing list