mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix bug where plugin would crash if decoder hits unexpected end of file
This commit is contained in:
@@ -276,8 +276,11 @@ DWORD WINAPI __stdcall DecodeThread(void *b)
|
||||
done = 1;
|
||||
break;
|
||||
}
|
||||
else if(!FLAC__file_decoder_process_one_frame(decoder_))
|
||||
else if(!FLAC__file_decoder_process_one_frame(decoder_)) {
|
||||
MessageBox(mod_.hMainWindow, FLAC__FileDecoderStateString[FLAC__file_decoder_get_state(decoder_)], "READ ERROR processing frame", 0);
|
||||
done = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (samples_in_reservoir_ == 0) {
|
||||
|
||||
Reference in New Issue
Block a user