diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-25 23:56:31 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-25 23:56:31 +0000 |
commit | 557c24e609c7878e841d4374c93acdd24f379837 (patch) | |
tree | b21f9734422a00bac301210bfe95bb3862ce6658 /src | |
parent | f3498c36c71f4eb1840d6389d4d30c76c6f26cf8 (diff) | |
download | xine-lib-557c24e609c7878e841d4374c93acdd24f379837.tar.gz xine-lib-557c24e609c7878e841d4374c93acdd24f379837.tar.bz2 |
Return when the initialisation failed.
Found by Coverity Scan.
CVS patchset: 8279
CVS date: 2006/09/25 23:56:31
Diffstat (limited to 'src')
-rw-r--r-- | src/libxineadec/nsf.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <stdio.h> @@ -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, |