Ticket #1182: mythtvaudio.patch

File mythtvaudio.patch, 870 bytes (added by anonymous, 15 years ago)
Line 
1*** audiooutputbase.cpp.original        2006-02-01 16:57:39.000000000 +0200
2--- audiooutputbase.cpp 2006-02-01 17:14:55.000000000 +0200
3***************
4*** 122,127 ****
5--- 122,129 ----
6      audio_samplerate = laudio_samplerate;
7      if (audio_bits != 8 && audio_bits != 16)
8      {
9+         pthread_mutex_unlock(&avsync_lock);
10+         pthread_mutex_unlock(&audio_buflock);
11          Error("AudioOutput only supports 8 or 16bit audio.");
12          return;
13      }
14***************
15*** 173,178 ****
16--- 175,182 ----
17          src_ctx = src_new (SRC_SINC_BEST_QUALITY, audio_channels, &error);
18          if (error)
19          {
20+             pthread_mutex_unlock(&avsync_lock);
21+             pthread_mutex_unlock(&audio_buflock);
22              Error(QString("Error creating resampler, the error was: %1")
23                    .arg(src_strerror(error)) );
24              return;