mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
revamp decoder process calls
This commit is contained in:
@@ -154,7 +154,8 @@ FLAC__bool FLAC__metadata_get_streaminfo(const char *filename, FLAC__StreamMetad
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!FLAC__file_decoder_process_metadata(decoder) || cd.got_error) {
|
||||
/* the first thing decoded must be the STREAMINFO block: */
|
||||
if(!FLAC__file_decoder_process_single(decoder) || cd.got_error) {
|
||||
FLAC__file_decoder_finish(decoder);
|
||||
FLAC__file_decoder_delete(decoder);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user