diff --git a/libtriple/playback_td.cpp b/libtriple/playback_td.cpp index e5c8e19..a1c02e7 100644 --- a/libtriple/playback_td.cpp +++ b/libtriple/playback_td.cpp @@ -105,7 +105,9 @@ void cPlayback::Close(void) free(pesbuf); 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)