[libbluray-devel] commit: Fixed bd_play_title() return value (1=success, 0=error) (hpi1 )
git at videolan.org
git at videolan.org
Mon Nov 15 16:02:59 CET 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Nov 15 16:44:43 2010 +0200| [76f99c8f130c49fb52bd74b6129a9f2a9597c1cc] | committer: hpi1
Fixed bd_play_title() return value (1=success, 0=error)
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=76f99c8f130c49fb52bd74b6129a9f2a9597c1cc
---
src/libbluray/bluray.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 4a81ccf..17234f6 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1606,7 +1606,7 @@ int bd_play_title(BLURAY *bd, unsigned title)
if (p->hdmv.id_ref == 0xffff) {
/* no first play title (5.2.3.3) */
bd->title_type = title_hdmv;
- return 0;
+ return 1;
}
return _play_hdmv(bd, p->hdmv.id_ref);
}
@@ -1615,13 +1615,13 @@ int bd_play_title(BLURAY *bd, unsigned title)
return _play_bdj(bd, p->bdj.name);
}
- return -1;
+ return 0;
}
/* bd_play not called ? */
if (bd->title_type == title_undef) {
DEBUG(DBG_BLURAY|DBG_CRIT, "bd_call_title(): bd_play() not called !\n");
- return -1;
+ return 0;
}
/* top menu ? */
@@ -1634,7 +1634,7 @@ int bd_play_title(BLURAY *bd, unsigned title)
if (p->hdmv.id_ref == 0xffff) {
/* no top menu (5.2.3.3) */
bd->title_type = title_hdmv;
- return -1;
+ return 0;
}
return _play_hdmv(bd, p->hdmv.id_ref);
}
@@ -1643,7 +1643,7 @@ int bd_play_title(BLURAY *bd, unsigned title)
return _play_bdj(bd, p->bdj.name);
}
- return -1;
+ return 0;
}
/* valid title from disc index ? */
@@ -1659,7 +1659,7 @@ int bd_play_title(BLURAY *bd, unsigned title)
}
}
- return -1;
+ return 0;
}
int bd_play(BLURAY *bd)
More information about the libbluray-devel
mailing list