triple: avoid a crash in cPlayback destructor

This commit is contained in:
Stefan Seyfried
2013-03-03 22:07:56 +01:00
parent c191aba9ca
commit eb7f51252e

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)