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 | 22c70084bc88af56b103c5b28ad74c9260058ae7 (patch) | |
tree | 4081527b7aa532a97ec7cfd19481573a5f9921b0 | |
parent | 7cf44fc4bb54e61f569c7ae969df04b1d4db6f8d (diff) | |
download | xine-lib-22c70084bc88af56b103c5b28ad74c9260058ae7.tar.gz xine-lib-22c70084bc88af56b103c5b28ad74c9260058ae7.tar.bz2 |
Avoid locking log_lock once the buffer has been allocated.
(transplanted from 4988e864d1a9db84756668ea33a9f6860ded879e)
--HG--
extra : transplant_source : I%88%E8d%D1%A9%DB%84ufh%EA3%A9%F6%86%0D%ED%87%9E
-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 f3b59942d..eae13bec9 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -2058,6 +2058,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] ) |