[libbluray-devel] commit: Fixed bd_set_player_setting() return value (1 on success, 0 on error) (hpi1 )
git at videolan.org
git at videolan.org
Fri Oct 8 12:18:36 CEST 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Oct 7 14:22:48 2010 +0300| [a7899e2e2279239a936a6dd2ed0993ddfc6da5a5] | committer: hpi1
Fixed bd_set_player_setting() return value (1 on success, 0 on error)
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a7899e2e2279239a936a6dd2ed0993ddfc6da5a5
---
src/libbluray/bluray.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 67ae5be..9f272c5 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1117,7 +1117,7 @@ int bd_set_player_setting(BLURAY *bd, uint32_t idx, uint32_t value)
for (i = 0; i < sizeof(map) / sizeof(map[0]); i++) {
if (idx == map[i].idx) {
- return bd_psr_setting_write(bd->regs, idx, value);
+ return !bd_psr_setting_write(bd->regs, idx, value);
}
}
More information about the libbluray-devel
mailing list