*** audiooutputbase.cpp.original	2006-02-01 16:57:39.000000000 +0200
--- audiooutputbase.cpp	2006-02-01 17:14:55.000000000 +0200
***************
*** 122,127 ****
--- 122,129 ----
      audio_samplerate = laudio_samplerate;
      if (audio_bits != 8 && audio_bits != 16)
      {
+         pthread_mutex_unlock(&avsync_lock);
+         pthread_mutex_unlock(&audio_buflock);
          Error("AudioOutput only supports 8 or 16bit audio.");
          return;
      }
***************
*** 173,178 ****
--- 175,182 ----
          src_ctx = src_new (SRC_SINC_BEST_QUALITY, audio_channels, &error);
          if (error)
          {
+             pthread_mutex_unlock(&avsync_lock);
+             pthread_mutex_unlock(&audio_buflock);
              Error(QString("Error creating resampler, the error was: %1")
                    .arg(src_strerror(error)) );
              return;
