Commit 8a0ab31f authored by Josh Coalson's avatar Josh Coalson
Browse files

turn off MD5 checking in the plugin

parent 2d886aee
......@@ -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;
......
......@@ -215,6 +215,7 @@ void FLAC_XMMS__get_song_info(char *filename, char **title, int *length_in_msec)
return;
}
tmp_file_info.abort_flag = false;
tmp_decoder->check_md5 = false; /* turn off MD5 checking in the decoder */
if(FLAC__file_decoder_init(tmp_decoder, filename, write_callback_, metadata_callback_, error_callback_, &tmp_file_info) != FLAC__FILE_DECODER_OK) {
*length_in_msec = -1;
return;
......@@ -287,6 +288,8 @@ bool decoder_init_(const char *filename)
if(decoder_ == 0)
return false;
decoder_->check_md5 = false; /* turn off MD5 checking in the decoder */
if(FLAC__file_decoder_init(decoder_, filename, write_callback_, metadata_callback_, error_callback_, &file_info_) != FLAC__FILE_DECODER_OK)
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment