summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-01-19 17:01:02 +0100
committerJohns <johns98@gmx.net>2012-01-19 17:01:02 +0100
commit09f62307d485d405895e505d8273280f539085e8 (patch)
tree5b2e6f1a4b095488645012eff2b627a182ff1058 /audio.c
parent87f7aa63cc40bb5101117f6c1fb1e4afca8f88d8 (diff)
downloadvdr-plugin-softhddevice-09f62307d485d405895e505d8273280f539085e8.tar.gz
vdr-plugin-softhddevice-09f62307d485d405895e505d8273280f539085e8.tar.bz2
Fix bug: AudioExit called without AudioInit crash.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index f9527fc..4eced8e 100644
--- a/audio.c
+++ b/audio.c
@@ -2125,7 +2125,9 @@ void AudioExit(void)
#ifdef USE_AUDIO_THREAD
AudioExitThread();
#endif
- UsedAudioModule->Exit();
+ if ( UsedAudioModule ) {
+ UsedAudioModule->Exit();
+ }
#ifdef USE_AUDIORING
AudioRingExit();
#endif