[vlc-devel] [PATCH] Make sure vlc_release doesn't destroy a non existent spinlock.

Alexis Ballier aballier at gentoo.org
Mon Jul 13 12:35:48 CEST 2009


This was actually fixed by [697457bcb66171897605b1c88150f3bb7eb075c6] but then [952a943ae25ba8f22e4e70eb0f55b4c0cee069b8] came which made it useless.
---
 src/libvlc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 075720a..f0971a9 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -195,7 +195,7 @@ void vlc_release (gc_object_t *p_gc)
     assert (refs != (uintptr_t)(-1)); /* reference underflow?! */
     if (refs == 0)
     {
-#ifdef USE_SYNC
+#if defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
 #elif defined (WIN32) && defined (__GNUC__)
 #elif defined(__APPLE__)
 #else
-- 
1.6.3.3




More information about the vlc-devel mailing list