diff options
author | Johns <johns98@gmx.net> | 2013-01-06 14:47:00 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-01-06 14:47:00 +0100 |
commit | 534b4094b5ee884900f64c428291488bb0ddf53a (patch) | |
tree | f231bf62b7acf9fdeaec55761dbb64bd64861b44 /audio.c | |
parent | 7cd025a023f25cd6b2fe03e06a945ca846282043 (diff) | |
download | vdr-plugin-softhddevice-534b4094b5ee884900f64c428291488bb0ddf53a.tar.gz vdr-plugin-softhddevice-534b4094b5ee884900f64c428291488bb0ddf53a.tar.bz2 |
Fix thread exit problem.
Diffstat (limited to 'audio.c')
-rw-r--r-- | audio.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |