[vlc-devel] commit: Make sure vlc_release doesn't destroy a non existent spinlock. ( Alexis Ballier )

git version control git at videolan.org
Mon Jul 13 18:32:14 CEST 2009


vlc | branch: master | Alexis Ballier <aballier at gentoo.org> | Mon Jul 13 12:35:48 2009 +0200| [7c39ad95f5632f04e8d082c6fe44fdfed90fd897] | committer: Rémi Denis-Courmont 

Make sure vlc_release doesn't destroy a non existent spinlock.

This was actually fixed by [697457bcb66171897605b1c88150f3bb7eb075c6] but then [952a943ae25ba8f22e4e70eb0f55b4c0cee069b8] came which made it useless.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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




More information about the vlc-devel mailing list