summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-02-17 13:10:03 +0100
committerMax Kellermann <max@musicpd.org>2018-02-17 13:33:51 +0100
commitb53a23b51b8d02a709af0bc8681a25197f12481b (patch)
tree99e66e2bc130b6679bbdf629016b43ac44b1a7f3 /src
parent2aad0153925aa0fc7bf0bac206a756e294c8e6a0 (diff)
decoder/flac: call FlacSubmitToClient() again after seeking
See code comment.
Diffstat (limited to 'src')
-rw-r--r--src/decoder/plugins/FlacDecoderPlugin.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decoder/plugins/FlacDecoderPlugin.cxx b/src/decoder/plugins/FlacDecoderPlugin.cxx
index 2dc24568d..0b1c2a12a 100644
--- a/src/decoder/plugins/FlacDecoderPlugin.cxx
+++ b/src/decoder/plugins/FlacDecoderPlugin.cxx
@@ -166,6 +166,11 @@ flac_decoder_loop(FlacDecoder *data, FLAC__StreamDecoder *flac_dec)
client.CommandFinished();
} else
client.SeekError();
+
+ /* FLAC__stream_decoder_seek_absolute()
+ decodes one frame and may have provided
+ data to be submitted to the client */
+ continue;
} else if (cmd == DecoderCommand::STOP)
break;