decoder/mad: fix crash when seeking at end of song

Removed the decoder_command_finished() call at the end of
mp3_decode().  This is invalid, because decoder_command_finished() has
already been called in mp3_read().
This commit is contained in:
Max Kellermann 2010-02-27 18:35:31 +01:00
parent 728c66e7e3
commit 35c5a371ea
2 changed files with 2 additions and 4 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.15.9 (2009/??/??)
* decoders:
- mad: fix crash when seeking at end of song
ver 0.15.8 (2010/01/17)

View File

@ -1207,10 +1207,6 @@ mp3_decode(struct decoder *decoder, struct input_stream *input_stream)
if (replay_gain_info)
replay_gain_info_free(replay_gain_info);
if (decoder_get_command(decoder) == DECODE_COMMAND_SEEK &&
data.mute_frame == MUTEFRAME_SEEK)
decoder_command_finished(decoder);
mp3_data_finish(&data);
}