$NetBSD: patch-ee,v 1.3 2007/02/07 20:04:00 drochner Exp $

--- src/xine-engine/xine.c.orig	2007-02-07 19:58:49.000000000 +0100
+++ src/xine-engine/xine.c
@@ -1544,6 +1544,9 @@ void xine_init (xine_t *this) {
   /* probe for optimized memcpy or config setting */
   xine_probe_fast_memcpy (this);
 
+  /* plugin loading might call log functions */
+  pthread_mutex_init(&this->log_lock, NULL);
+
   /*
    * plugins
    */
@@ -1622,7 +1625,6 @@ void xine_init (xine_t *this) {
    * locks
    */
   pthread_mutex_init (&this->streams_lock, NULL);
-  pthread_mutex_init (&this->log_lock, NULL);
   
   /*
    * start metronom clock
