aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mp3_plugin.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c
index 06e674254..108bd7e5f 100644
--- a/src/inputPlugins/mp3_plugin.c
+++ b/src/inputPlugins/mp3_plugin.c
@@ -706,14 +706,15 @@ int mp3_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) {
data.elapsedTime,data.bitRate/1000);
}
- flushOutputBuffer(cb);
- mp3DecodeDataFinalize(&data);
closeInputStream(inStream);
- /*if(dc->seek) {
- dc->seekError = 1;
+ if(dc->seek && data.muteFrame == MUTEFRAME_SEEK) {
+ clearOutputBuffer(cb);
dc->seek = 0;
- }*/
+ }
+
+ flushOutputBuffer(cb);
+ mp3DecodeDataFinalize(&data);
if(dc->stop) {
dc->state = DECODE_STATE_STOP;