diff options
author | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-03-05 22:00:25 +0000 |
---|---|---|
committer | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-03-05 22:00:25 +0000 |
commit | b2ba852bbb64780030ba72d451ef3d7c6ac2e63c (patch) | |
tree | bfe9b47bab1cea167a86245de220b80547b72e07 /src | |
parent | 525aacaf678e61beb90b2addd75af7d6fea9f451 (diff) | |
download | xine-lib-b2ba852bbb64780030ba72d451ef3d7c6ac2e63c.tar.gz xine-lib-b2ba852bbb64780030ba72d451ef3d7c6ac2e63c.tar.bz2 |
Fix segfault on xine close, if xine is run with "xine -Anull"
CVS patchset: 1538
CVS date: 2002/03/05 22:00:25
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 10 |
1 files changed, 6 insertions, 4 deletions
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) { |