[libbluray-devel] commit: make bd_get_event return 1 on success and 0 for no events (john )

git at videolan.org git at videolan.org
Sat Sep 4 00:28:59 CEST 2010


libbluray | branch: master | john <john at anonymous.org> | Fri Sep  3 15:20:34 2010 -0700| [a58be3302b994623723caa2b691dbda4991e5a8b] | committer: john 

make bd_get_event return 1 on success and 0 for no events

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index ffebf5c..9a2827a 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1497,9 +1497,5 @@ int bd_get_event(BLURAY *bd, BD_EVENT *event)
         bd_psr_register_cb(bd->regs, _process_psr_event, bd);
     }
 
-    if (_get_event(bd, event)) {
-        return 0;
-    }
-
-    return 1;
+    return _get_event(bd, event);
 }



More information about the libbluray-devel mailing list