mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Fix thread exit problem.
This commit is contained in:
parent
7cd025a023
commit
534b4094b5
5
audio.c
5
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;
|
||||
|
Loading…
Reference in New Issue
Block a user