[libbluray-devel] Check correct pointer

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


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Oct 23 11:33:24 2014 +0300| [4f94d184f80d97e2c5de2e01758fe131f579b9f5] | committer: hpi1

Check correct pointer

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

 src/libbluray/bluray.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 5816e39..04d9b76 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -397,7 +397,7 @@ static void _update_clip_psrs(BLURAY *bd, NAV_CLIP *clip)
 
 static int _is_interactive_title(BLURAY *bd)
 {
-    if (bd->title && bd->title_type != title_undef) {
+    if (bd->titles && bd->title_type != title_undef) {
         unsigned title = bd_psr_read(bd->regs, PSR_TITLE_NUMBER);
         if (title == 0xffff && bd->disc_info.first_play->interactive) {
             return 1;



More information about the libbluray-devel mailing list