[libbluray-devel] Use correct PSR ID
hpi1
git at videolan.org
Mon Jan 25 13:23:11 CET 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jan 25 14:22:43 2016 +0200| [8f8c4ba3ded18dc7de1c2bbebb96d074be082a10] | committer: hpi1
Use correct PSR ID
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=8f8c4ba3ded18dc7de1c2bbebb96d074be082a10
---
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 1aedf2c..5ca254b 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2745,7 +2745,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) {
bd_mutex_lock(&bd->mutex);
- result = !bd_psr_setting_write(bd->regs, idx, value);
+ result = !bd_psr_setting_write(bd->regs, map[i].psr, value);
bd_mutex_unlock(&bd->mutex);
return result;
}
More information about the libbluray-devel
mailing list