mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
turn off MD5 checking in the plugin
This commit is contained in:
@@ -209,6 +209,7 @@ void getfileinfo(char *filename, char *title, int *length_in_ms)
|
||||
else { /* some other file */
|
||||
if (length_in_ms) {
|
||||
FLAC__FileDecoder *tmp_decoder = FLAC__file_decoder_get_new_instance();
|
||||
tmp_decoder->check_md5 = false; /* turn off MD5 checking in the decoder */
|
||||
stream_info_struct tmp_stream_info;
|
||||
tmp_stream_info.abort_flag = false;
|
||||
if(FLAC__file_decoder_init(tmp_decoder, filename, write_callback, metadata_callback, error_callback, &tmp_stream_info) != FLAC__FILE_DECODER_OK)
|
||||
@@ -361,6 +362,7 @@ __declspec( dllexport ) In_Module * winampGetInModule2()
|
||||
**********************************************************************/
|
||||
bool stream_init(const char *infile)
|
||||
{
|
||||
decoder->check_md5 = false; /* turn off MD5 checking in the decoder */
|
||||
if(FLAC__file_decoder_init(decoder, infile, write_callback, metadata_callback, error_callback, &stream_info) != FLAC__FILE_DECODER_OK) {
|
||||
MessageBox(mod.hMainWindow,"ERROR initializing decoder, state = %d\n","ERROR initializing decoder",0);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user