add a boolean return value to FLAC__stream_encoder_finish() that signals a verify mismatch

This commit is contained in:
Josh Coalson
2006-11-09 06:58:26 +00:00
parent 38bf3e6ca9
commit a586226fda
7 changed files with 37 additions and 13 deletions

View File

@@ -443,7 +443,8 @@ static FLAC__bool test_stream_encoder(Layer layer, FLAC__bool is_ogg)
printf("OK\n");
printf("testing FLAC__stream_encoder_finish()... ");
FLAC__stream_encoder_finish(encoder);
if(!FLAC__stream_encoder_finish(encoder))
return die_s_("returned false", encoder);
printf("OK\n");
printf("testing FLAC__stream_encoder_delete()... ");