From eb7f51252e3e7bb823fd043aa8fb3467de715076 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 3 Mar 2013 22:07:56 +0100 Subject: [PATCH] triple: avoid a crash in cPlayback destructor --- libtriple/playback_td.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)