[vlc-devel] commit: Fix a2e0eaa1708f05680d0c6bc1ba25873e6d2b6b3f on legacy platforms ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Sep 22 18:37:29 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Sep 22 19:40:38 2008 +0300| [cd193be806013ab973618f7b9096b5199c92a1ee] | committer: Rémi Denis-Courmont 

Fix a2e0eaa1708f05680d0c6bc1ba25873e6d2b6b3f on legacy platforms

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

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

diff --git a/src/libvlc.c b/src/libvlc.c
index 2f2390d..1f2f52a 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -159,7 +159,7 @@ void *vlc_hold (gc_object_t * p_gc)
     refs = OSAtomicIncrement32Barrier((int*)&p_gc->refs);
 #else
     vlc_spin_lock (&p_gc->spin);
-    refs = p_gc->refs++;
+    refs = ++p_gc->refs;
     vlc_spin_unlock (&p_gc->spin);
 #endif
     assert (refs != 1); /* there had to be a reference already */
@@ -186,7 +186,7 @@ void vlc_release (gc_object_t *p_gc)
     refs = OSAtomicDecrement32Barrier((int*)&p_gc->refs);
 #else
     vlc_spin_lock (&p_gc->spin);
-    refs = p_gc->refs--;
+    refs = --p_gc->refs;
     vlc_spin_unlock (&p_gc->spin);
 #endif
 




More information about the vlc-devel mailing list