triple: avoid a crash in cPlayback destructor

Origin commit data
------------------
Branch: master
Commit: eb7f51252e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-03 (Sun, 03 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-03-03 22:07:56 +01:00
parent 6ad20e912c
commit 6dce52f3ab

View File

@@ -105,7 +105,9 @@ void cPlayback::Close(void)
free(pesbuf); free(pesbuf);
pesbuf = NULL; pesbuf = NULL;
audioDecoder->do_mute(audioDecoder->Muted, false); /* don't crash */
if (audioDecoder)
audioDecoder->do_mute(audioDecoder->Muted, false);
} }
bool cPlayback::Start(char *filename, unsigned short vp, int vtype, unsigned short ap, int _ac3, unsigned int) bool cPlayback::Start(char *filename, unsigned short vp, int vtype, unsigned short ap, int _ac3, unsigned int)