Commit cd193be8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix a2e0eaa1 on legacy platforms

parent 009a1337
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment