[vlc-devel] commit: Revert "libvlc: Fix a typo in vlc_gc_object vlc_release(). We need to desstroy when the refcount reaches zero." (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Sep 20 02:30:13 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Sep 20 02:31:45 2008 +0200| [df25be4170dc6e1db8a5b13de530df459662611c] | committer: Pierre d'Herbemont
Revert "libvlc: Fix a typo in vlc_gc_object vlc_release(). We need to desstroy when the refcount reaches zero."
This reverts commit a42998e5478948372da51a0d77e7d2332b61d8c8.
My bad.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df25be4170dc6e1db8a5b13de530df459662611c
---
src/libvlc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index b6d1e12..07e25d3 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -185,8 +185,8 @@ void vlc_release (gc_object_t *p_gc)
vlc_spin_unlock (&p_gc->spin);
#endif
- /* assert(refs >= 0); */
- if (refs == 0)
+ assert (refs > 0);
+ if (refs == 1)
{
vlc_spin_destroy (&p_gc->spin);
p_gc->pf_destructor (p_gc);
More information about the vlc-devel
mailing list