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

git version control git at videolan.org
Sat Sep 20 17:01:28 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Sep 20 17:02:24 2008 +0200| [697457bcb66171897605b1c88150f3bb7eb075c6] | committer: Pierre d'Herbemont 

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

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

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

diff --git a/src/libvlc.c b/src/libvlc.c
index b7c9e63..5445183 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -188,7 +188,11 @@ void vlc_release (gc_object_t *p_gc)
     assert (refs > 0);
     if (refs == 1)
     {
+#ifdef USE_SYNC
+#elif defined(__APPLE__)
+#else
         vlc_spin_destroy (&p_gc->spin);
+#endif
         p_gc->pf_destructor (p_gc);
     }
 }




More information about the vlc-devel mailing list