[libbluray-devel] Cosmetics (changed title counting order)

hpi1 git at videolan.org
Sat Dec 14 19:45:09 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Dec 13 21:39:29 2013 +0200| [28b897c69390c0b243c84a206fa26cf04ce96404] | committer: npzacs

Cosmetics (changed title counting order)

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

 src/libbluray/bluray.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 8a426aa..6010d82 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -942,16 +942,6 @@ static void _fill_disc_info(BLURAY *bd)
 
         bd->disc_info.bluray_detected = 1;
 
-        pi = &bd->index->first_play;
-        if (pi->object_type == indx_object_type_hdmv && pi->hdmv.id_ref != 0xffff) {
-            bd->disc_info.first_play_supported = 1;
-        }
-
-        pi = &bd->index->top_menu;
-        if (pi->object_type == indx_object_type_hdmv && pi->hdmv.id_ref != 0xffff) {
-            bd->disc_info.top_menu_supported = 1;
-        }
-
         for (ii = 0; ii < bd->index->num_titles; ii++) {
             if (bd->index->titles[ii].object_type == indx_object_type_hdmv) {
                 bd->disc_info.num_hdmv_titles++;
@@ -961,6 +951,16 @@ static void _fill_disc_info(BLURAY *bd)
                 bd->disc_info.num_unsupported_titles++;
             }
         }
+
+        pi = &bd->index->first_play;
+        if (pi->object_type == indx_object_type_hdmv && pi->hdmv.id_ref != 0xffff) {
+            bd->disc_info.first_play_supported = 1;
+        }
+
+        pi = &bd->index->top_menu;
+        if (pi->object_type == indx_object_type_hdmv && pi->hdmv.id_ref != 0xffff) {
+            bd->disc_info.top_menu_supported = 1;
+        }
     }
 }
 



More information about the libbluray-devel mailing list