[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:41 CEST 2009
vlc | branch: 1.0-bugfix | Alexis Ballier <aballier at gentoo.org> | Mon Jul 13 12:35:48 2009 +0200| [80cd02451fe28836f868b36bba60ab51a0f12253] | 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>
(cherry picked from commit 7c39ad95f5632f04e8d082c6fe44fdfed90fd897)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80cd02451fe28836f868b36bba60ab51a0f12253
---
src/libvlc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index dc396a1..322b0e9 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