check return value of FLAC__stream_decoder_finish()

This commit is contained in:
Josh Coalson
2006-11-09 06:53:58 +00:00
parent fb84f25bc1
commit 4c5d485b1d

View File

@@ -375,7 +375,8 @@ static FLAC__bool stream_decoder_test_respond_(FLAC__StreamDecoder *decoder, Str
printf("OK\n");
printf("testing FLAC__stream_decoder_finish()... ");
FLAC__stream_decoder_finish(decoder);
if(!FLAC__stream_decoder_finish(decoder))
return die_s_("returned false", decoder);
printf("OK\n");
return true;
@@ -645,7 +646,8 @@ static FLAC__bool test_stream_decoder(Layer layer, FLAC__bool is_ogg)
}
printf("testing FLAC__stream_decoder_finish()... ");
(void) FLAC__stream_decoder_finish(decoder);
if(!FLAC__stream_decoder_finish(decoder))
return die_s_("returned false", decoder);
printf("OK\n");
/*