[libbluray-devel] Simplify

hpi1 git at videolan.org
Sun Sep 2 17:27:29 CEST 2018


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Sep  2 14:09:43 2018 +0300| [3b84c4b20e846f2256cace52298f3fe6ff3aa133] | committer: hpi1

Simplify

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

 src/libbluray/bluray.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 4b5ce1c7..17288012 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -3232,27 +3232,16 @@ static int _play_title(BLURAY *bd, unsigned title)
 
     /* top menu ? */
     if (title == BLURAY_TITLE_TOP_MENU) {
-
-        bd_psr_write(bd->regs, PSR_TITLE_NUMBER, 0); /* 5.2.3.3 */
-
         if (!bd->disc_info.top_menu_supported) {
             /* no top menu (5.2.3.3) */
             BD_DEBUG(DBG_BLURAY | DBG_CRIT, "_play_title(): No top menu title\n");
             bd->title_type = title_hdmv;
             return 0;
         }
-
-        if (bd->disc_info.top_menu->bdj) {
-            return _play_bdj(bd, title);
-        } else {
-            return _play_hdmv(bd, bd->disc_info.top_menu->id_ref);
-        }
-
-        return 0;
     }
 
     /* valid title from disc index ? */
-    if (title > 0 && title <= bd->disc_info.num_titles) {
+    if (title <= bd->disc_info.num_titles) {
 
         bd_psr_write(bd->regs, PSR_TITLE_NUMBER, title); /* 5.2.3.3 */
         if (bd->disc_info.titles[title]->bdj) {



More information about the libbluray-devel mailing list