[libbluray-devel] grouped BD-J specific checks in read_ext()

hpi1 git at videolan.org
Fri Oct 24 12:31:07 CEST 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Oct 23 11:30:17 2014 +0300| [0561f3c09b5809a57b76477fc292e97ac2384f67] | committer: hpi1

grouped BD-J specific checks in read_ext()

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

 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 16374ce..8f3121b 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -3271,18 +3271,18 @@ static int _read_ext(BLURAY *bd, unsigned char *buf, int len, BD_EVENT *event)
         return 0;
     }
 
-    if (bd->bdj_end_of_playlist == 1) {
-        _bdj_event(bd, BDJ_EVENT_END_OF_PLAYLIST, bd_psr_read(bd->regs, PSR_PLAYLIST));
-        bd->bdj_end_of_playlist |= 2;
-    }
+    if (bd->title_type == title_bdj) {
+        if (bd->bdj_end_of_playlist == 1) {
+            _bdj_event(bd, BDJ_EVENT_END_OF_PLAYLIST, bd_psr_read(bd->regs, PSR_PLAYLIST));
+            bd->bdj_end_of_playlist |= 2;
+        }
 
-    if (!bd->title && bd->title_type == title_bdj) {
-        /* BD-J title running but no playlist playing */
-        _queue_event(bd, BD_EVENT_IDLE, 0);
-        return 0;
-    }
+        if (!bd->title) {
+            /* BD-J title running but no playlist playing */
+            _queue_event(bd, BD_EVENT_IDLE, 0);
+            return 0;
+        }
 
-    if (bd->title_type == title_bdj) {
         if (bd->bdj_wait_start) {
             /* BD-J playlist prefethed but not yet playing */
             _queue_event(bd, BD_EVENT_IDLE, 1);



More information about the libbluray-devel mailing list