[libbluray-devel] commit: Fixed _queue_event() return value (hpi1 )

git at videolan.org git at videolan.org
Sun Sep 5 15:03:14 CEST 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Sep  5 00:05:52 2010 +0300| [43a5e45a0039e5e852d32d1d504592ed8b49a713] | committer: hpi1 

Fixed _queue_event() return value

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 9a2827a..0ffc2f1 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -183,13 +183,13 @@ static int _queue_event(BLURAY *bd, BD_EVENT ev)
         if (new_in != eq->out) {
             eq->ev[eq->in] = ev;
             eq->in = new_in;
-            return 0;
+            return 1;
         }
 
         DEBUG(DBG_BLURAY|DBG_CRIT, "_queue_event(%d, %d): queue overflow !\n", ev.event, ev.param);
     }
 
-    return -1;
+    return 0;
 }
 
 /*



More information about the libbluray-devel mailing list