[libbluray-devel] Fix return value when setting BLURAY_PLAYER_SETTING_DECODE_PG

hpi1 git at videolan.org
Tue Sep 22 14:04:44 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Sep 22 11:36:32 2015 +0300| [7a90a4933820717dc624bbcb1d7c6a69015de714] | committer: hpi1

Fix return value when setting BLURAY_PLAYER_SETTING_DECODE_PG

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

 src/libbluray/bluray.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 458b79b..cac7798 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2708,9 +2708,9 @@ int bd_set_player_setting(BLURAY *bd, uint32_t idx, uint32_t value)
         bd_mutex_lock(&bd->mutex);
 
         bd->decode_pg = !!value;
-        result = bd_psr_write_bits(bd->regs, PSR_PG_STREAM,
-                                   (!!value) << 31,
-                                   0x80000000);
+        result = !bd_psr_write_bits(bd->regs, PSR_PG_STREAM,
+                                    (!!value) << 31,
+                                    0x80000000);
 
         bd_mutex_unlock(&bd->mutex);
         return result;



More information about the libbluray-devel mailing list