void quit()
{
- if(decoder)
+ if(decoder) {
FLAC__file_decoder_delete(decoder);
+ decoder = 0;
+ }
}
int isourfile(char *fn) { return 0; }
CloseHandle(thread_handle);
thread_handle = INVALID_HANDLE_VALUE;
}
- if(decoder) {
- if(FLAC__file_decoder_get_state(decoder) != FLAC__FILE_DECODER_UNINITIALIZED)
- FLAC__file_decoder_finish(decoder);
- }
+ if(decoder)
+ FLAC__file_decoder_finish(decoder);
mod.outMod->Close();
*length_in_ms = (int)tmp_stream_info.length_in_ms;
- if(FLAC__file_decoder_get_state(tmp_decoder) != FLAC__FILE_DECODER_UNINITIALIZED)
- FLAC__file_decoder_finish(tmp_decoder);
+ FLAC__file_decoder_finish(tmp_decoder);
FLAC__file_decoder_delete(tmp_decoder);
}
if (title) {