#ifdef FLAC__HAS_OGG
if(stream_info.is_ogg) {
if(stream_info.decoder.stream) {
- if(FLAC__stream_decoder_get_state(stream_info.decoder.stream) != FLAC__STREAM_DECODER_UNINITIALIZED)
- FLAC__stream_decoder_finish(stream_info.decoder.stream);
+ FLAC__stream_decoder_finish(stream_info.decoder.stream);
md5_failure = false;
print_stats(&stream_info);
FLAC__stream_decoder_delete(stream_info.decoder.stream);
#endif
{
if(stream_info.decoder.file) {
- if(FLAC__file_decoder_get_state(stream_info.decoder.file) != FLAC__FILE_DECODER_UNINITIALIZED)
- md5_failure = !FLAC__file_decoder_finish(stream_info.decoder.file);
+ md5_failure = !FLAC__file_decoder_finish(stream_info.decoder.file);
print_stats(&stream_info);
FLAC__file_decoder_delete(stream_info.decoder.file);
}
#ifdef FLAC__HAS_OGG
if(stream_info.is_ogg) {
if(stream_info.decoder.stream) {
- if(FLAC__stream_decoder_get_state(stream_info.decoder.stream) != FLAC__STREAM_DECODER_UNINITIALIZED)
- FLAC__stream_decoder_finish(stream_info.decoder.stream);
+ FLAC__stream_decoder_finish(stream_info.decoder.stream);
FLAC__stream_decoder_delete(stream_info.decoder.stream);
}
}
#endif
{
if(stream_info.decoder.file) {
- if(FLAC__file_decoder_get_state(stream_info.decoder.file) != FLAC__FILE_DECODER_UNINITIALIZED)
- FLAC__file_decoder_finish(stream_info.decoder.file);
+ FLAC__file_decoder_finish(stream_info.decoder.file);
FLAC__file_decoder_delete(stream_info.decoder.file);
}
}
#ifdef FLAC__HAS_OGG
if(stream_info.is_ogg) {
if(stream_info.decoder.stream) {
- if(FLAC__stream_decoder_get_state(stream_info.decoder.stream) != FLAC__STREAM_DECODER_UNINITIALIZED)
- FLAC__stream_decoder_finish(stream_info.decoder.stream);
+ FLAC__stream_decoder_finish(stream_info.decoder.stream);
md5_failure = false;
print_stats(&stream_info);
FLAC__stream_decoder_delete(stream_info.decoder.stream);
#endif
{
if(stream_info.decoder.file) {
- if(FLAC__file_decoder_get_state(stream_info.decoder.file) != FLAC__FILE_DECODER_UNINITIALIZED)
- md5_failure = !FLAC__file_decoder_finish(stream_info.decoder.file);
+ md5_failure = !FLAC__file_decoder_finish(stream_info.decoder.file);
print_stats(&stream_info);
FLAC__file_decoder_delete(stream_info.decoder.file);
}
#ifdef FLAC__HAS_OGG
if(stream_info.is_ogg) {
if(stream_info.decoder.stream) {
- if(FLAC__stream_decoder_get_state(stream_info.decoder.stream) != FLAC__STREAM_DECODER_UNINITIALIZED)
- FLAC__stream_decoder_finish(stream_info.decoder.stream);
+ FLAC__stream_decoder_finish(stream_info.decoder.stream);
FLAC__stream_decoder_delete(stream_info.decoder.stream);
}
}
#endif
{
if(stream_info.decoder.file) {
- if(FLAC__file_decoder_get_state(stream_info.decoder.file) != FLAC__FILE_DECODER_UNINITIALIZED)
- FLAC__file_decoder_finish(stream_info.decoder.file);
+ FLAC__file_decoder_finish(stream_info.decoder.file);
FLAC__file_decoder_delete(stream_info.decoder.file);
}
}