diff options
author | Reinhard Nißl <rnissl@gmx.de> | 2007-04-15 22:25:20 +0200 |
---|---|---|
committer | Reinhard Nißl <rnissl@gmx.de> | 2007-04-15 22:25:20 +0200 |
commit | 6131a63cad60f0e3c452ec9486e9c496b42bed82 (patch) | |
tree | 1e9be9f6fe59f85e15208df5c0dd17a6b6a29fd4 /src/xine-engine/xine.c | |
parent | b18b4faf8fa913ccaeec3003d6bcfa273267db30 (diff) | |
download | xine-lib-6131a63cad60f0e3c452ec9486e9c496b42bed82.tar.gz xine-lib-6131a63cad60f0e3c452ec9486e9c496b42bed82.tar.bz2 |
Avoid locking log_lock once the buffer has been allocated.
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 840c91f3f..3109ac719 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -2034,6 +2034,9 @@ const char *const *xine_get_log_names (xine_t *this) { static inline void check_log_alloc (xine_t *this, int buf) { + if ( this->log_buffers[buf] ) + return; + pthread_mutex_lock (&this->log_lock); if ( ! this->log_buffers[buf] ) |