[vlc-devel] commit: Make the instance lock static ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Oct 5 15:43:42 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 5 16:41:00 2008 +0300| [b5c9f12635840804db2df181b733283fc5046ba3] | committer: Rémi Denis-Courmont
Make the instance lock static
(it's not distinct from the module bank lock)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5c9f12635840804db2df181b733283fc5046ba3
---
src/libvlc.c | 2 +-
src/libvlc.h | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index 00c26ad..1c15fcb 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -228,7 +228,7 @@ static int VerboseCallback( vlc_object_t *, char const *,
static void InitDeviceValues( libvlc_int_t * );
-vlc_mutex_t global_lock = VLC_STATIC_MUTEX;
+static vlc_mutex_t global_lock = VLC_STATIC_MUTEX;
/**
* Allocate a libvlc instance, initialize global data if needed
diff --git a/src/libvlc.h b/src/libvlc.h
index 14b128e..b0b7ed9 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -45,7 +45,6 @@ void system_End ( libvlc_int_t * );
/*
* Threads subsystem
*/
-extern vlc_mutex_t global_lock; /* TODO: remove this crap */
/* Hopefully, no need to export this. There is a new thread API instead. */
void vlc_thread_cancel (vlc_object_t *);
More information about the vlc-devel
mailing list