[libbluray-devel] commit: Cosmetics (indent) (hpi1 )

git at videolan.org git at videolan.org
Thu Oct 14 13:57:22 CEST 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Oct 11 14:50:47 2010 +0300| [7995f5490a5684beabe9eb4cfdbf47b22aacd3f4] | committer: hpi1 

Cosmetics (indent)

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

 src/libbluray/register.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/libbluray/register.c b/src/libbluray/register.c
index f475a5e..aa469d3 100644
--- a/src/libbluray/register.c
+++ b/src/libbluray/register.c
@@ -222,21 +222,21 @@ void bd_psr_register_cb  (BD_REGISTERS *p, void (*callback)(void*,BD_PSR_EVENT*)
 
 void bd_psr_unregister_cb(BD_REGISTERS *p, void (*callback)(void*,BD_PSR_EVENT*), void *cb_handle)
 {
-        unsigned i = 0;
+    unsigned i = 0;
 
-        bd_psr_lock(p);
+    bd_psr_lock(p);
 
-        while (i < p->num_cb) {
-            if (p->cb[i].handle == cb_handle && p->cb[i].cb == callback) {
-                if (--p->num_cb) {
-                    memmove(p->cb + i, p->cb + i + 1, sizeof(PSR_CB_DATA) * p->num_cb);
-                    continue;
-                }
+    while (i < p->num_cb) {
+        if (p->cb[i].handle == cb_handle && p->cb[i].cb == callback) {
+            if (--p->num_cb) {
+                memmove(p->cb + i, p->cb + i + 1, sizeof(PSR_CB_DATA) * p->num_cb);
+                continue;
             }
-            i++;
         }
+        i++;
+    }
 
-        bd_psr_unlock(p);
+    bd_psr_unlock(p);
 }
 
 /*



More information about the libbluray-devel mailing list