summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-01-06 14:47:00 +0100
committerJohns <johns98@gmx.net>2013-01-06 14:47:00 +0100
commit534b4094b5ee884900f64c428291488bb0ddf53a (patch)
treef231bf62b7acf9fdeaec55761dbb64bd64861b44 /audio.c
parent7cd025a023f25cd6b2fe03e06a945ca846282043 (diff)
downloadvdr-plugin-softhddevice-534b4094b5ee884900f64c428291488bb0ddf53a.tar.gz
vdr-plugin-softhddevice-534b4094b5ee884900f64c428291488bb0ddf53a.tar.bz2
Fix thread exit problem.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index 6948785..84b9509 100644
--- a/audio.c
+++ b/audio.c
@@ -2851,13 +2851,16 @@ void AudioInit(void)
*/
void AudioExit(void)
{
+ const AudioModule * module;
+
#ifdef USE_AUDIO_THREAD
if (AudioUsedModule->Thread) { // supports threads
AudioExitThread();
}
#endif
- AudioUsedModule->Exit();
+ module = AudioUsedModule;
AudioUsedModule = &NoopModule;
+ module->Exit();
AudioRingExit();
AudioRunning = 0;
AudioPaused = 0;