[libbluray-devel] Simplify

hpi1 git at videolan.org
Tue Feb 21 22:26:53 CET 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Feb 21 23:23:14 2017 +0200| [b5bd9f313c6c80fb34f1a4e83c595aef0897f533] | committer: hpi1

Simplify

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 03406a0..005ffbb 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -909,19 +909,6 @@ static int _run_gc(BLURAY *bd, gc_ctrl_e msg, uint32_t param)
 }
 
 /*
- * meta open
- */
-
-static int _meta_open(BLURAY *bd)
-{
-    if (!bd->meta) {
-        bd->meta = meta_parse(bd->disc);
-    }
-
-    return !!bd->meta;
-}
-
-/*
  * disc info
  */
 
@@ -3783,7 +3770,7 @@ const struct meta_dl *bd_get_meta(BLURAY *bd)
     }
 
     if (!bd->meta) {
-        _meta_open(bd);
+        bd->meta = meta_parse(bd->disc);
     }
 
     uint32_t psr_menu_lang = bd_psr_read(bd->regs, PSR_MENU_LANG);



More information about the libbluray-devel mailing list