From b2ba852bbb64780030ba72d451ef3d7c6ac2e63c Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Tue, 5 Mar 2002 22:00:25 +0000 Subject: Fix segfault on xine close, if xine is run with "xine -Anull" CVS patchset: 1538 CVS date: 2002/03/05 22:00:25 --- src/xine-engine/audio_decoder.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 8ae8d2901..b9b944a6a 100644 --- a/src/xine-engine/audio_decoder.c +++ b/src/xine-engine/audio_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_decoder.c,v 1.61 2002/03/01 09:29:50 guenter Exp $ + * $Id: audio_decoder.c,v 1.62 2002/03/05 22:00:25 jcdutton Exp $ * * * functions that implement audio decoding @@ -299,10 +299,12 @@ void audio_decoder_shutdown (xine_t *this) { pthread_join (this->audio_thread, &p); } - if(this->audio_out) + if(this->audio_out) { this->audio_out->exit (this->audio_out); - - this->audio_fifo->dispose (this->audio_fifo); + } + if (this->audio_fifo) { + this->audio_fifo->dispose (this->audio_fifo); + } } int xine_get_audio_channel (xine_t *this) { -- cgit v1.2.3