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:
@@ -307,8 +307,12 @@ void *play_loop_(void *arg)
|
||||
file_info_.eof = true;
|
||||
break;
|
||||
}
|
||||
else if(!FLAC__file_decoder_process_one_frame(decoder_))
|
||||
else if(!FLAC__file_decoder_process_one_frame(decoder_)) {
|
||||
/*@@@ this should probably be a dialog */
|
||||
fprintf(stderr, "libxmms-flac: READ ERROR processing frame\n");
|
||||
file_info_.eof = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(reservoir_samples_ > 0) {
|
||||
const unsigned channels = file_info_.channels;
|
||||
|
||||
Reference in New Issue
Block a user