From 557c24e609c7878e841d4374c93acdd24f379837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Mon, 25 Sep 2006 23:56:31 +0000 Subject: Return when the initialisation failed. Found by Coverity Scan. CVS patchset: 8279 CVS date: 2006/09/25 23:56:31 --- src/libxineadec/nsf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libxineadec/nsf.c b/src/libxineadec/nsf.c index 0d58e9be5..e646ca873 100644 --- a/src/libxineadec/nsf.c +++ b/src/libxineadec/nsf.c @@ -20,7 +20,7 @@ * NSF Audio "Decoder" using the Nosefart NSF engine by Matt Conte * http://www.baisoku.org/ * - * $Id: nsf.c,v 1.12 2006/07/10 22:08:43 dgp85 Exp $ + * $Id: nsf.c,v 1.13 2006/09/25 23:56:31 dgp85 Exp $ */ #include @@ -116,6 +116,7 @@ static void nsf_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG, "nsf: could not initialize NSF\n"); /* make the decoder return on every subsequent buffer */ this->nsf_index = 0; + return; } this->nsf->current_song = this->song_number; nsf_playtrack(this->nsf, this->nsf->current_song, this->sample_rate, -- cgit v1.2.3