[vlc-commits] commit: vlc_media_library.h: unused variable ( Rafaël Carré )

git at videolan.org git at videolan.org
Fri Jul 30 19:53:26 CEST 2010


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Jul 30 19:46:19 2010 +0200| [2164865c7cedbffe510f5e0450b7184251bd1503] | committer: Rafaël Carré 

vlc_media_library.h: unused variable

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

 include/vlc_media_library.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/include/vlc_media_library.h b/include/vlc_media_library.h
index f47eb21..1d58bcc 100644
--- a/include/vlc_media_library.h
+++ b/include/vlc_media_library.h
@@ -517,13 +517,12 @@ static inline int ml_AttributeIsString( ml_select_e meta )
  */
 static inline void ml_gc_incref( ml_media_t* p_media )
 {
-    unsigned refs;
     ml_gc_object_t* p_gc = &p_media->ml_gc_data;
     if( p_gc == NULL )
         return;
 
     vlc_spin_lock (&p_gc->spin);
-    refs = ++p_gc->refs;
+    ++p_gc->refs;
     vlc_spin_unlock (&p_gc->spin);
 }
 



More information about the vlc-commits mailing list