fix for when trying to seek past the end of an mp3
git-svn-id: https://svn.musicpd.org/mpd/trunk@1782 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
9e246a6ab2
commit
26741dcdeb
@ -706,14 +706,15 @@ int mp3_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) {
|
|||||||
data.elapsedTime,data.bitRate/1000);
|
data.elapsedTime,data.bitRate/1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
flushOutputBuffer(cb);
|
|
||||||
mp3DecodeDataFinalize(&data);
|
|
||||||
closeInputStream(inStream);
|
closeInputStream(inStream);
|
||||||
|
|
||||||
/*if(dc->seek) {
|
if(dc->seek && data.muteFrame == MUTEFRAME_SEEK) {
|
||||||
dc->seekError = 1;
|
clearOutputBuffer(cb);
|
||||||
dc->seek = 0;
|
dc->seek = 0;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
|
flushOutputBuffer(cb);
|
||||||
|
mp3DecodeDataFinalize(&data);
|
||||||
|
|
||||||
if(dc->stop) {
|
if(dc->stop) {
|
||||||
dc->state = DECODE_STATE_STOP;
|
dc->state = DECODE_STATE_STOP;
|
||||||
|
Loading…
Reference in New Issue
Block a user