From 6dce52f3ab4506c30f1c3076acfedbefafd792e6 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 Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/eb7f51252e3e7bb823fd043aa8fb3467de715076 Author: Stefan Seyfried Date: 2013-03-03 (Sun, 03 Mar 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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)