diff --git a/src/command/FingerprintCommands.cxx b/src/command/FingerprintCommands.cxx index e29b1e50a..be5aa3f2c 100644 --- a/src/command/FingerprintCommands.cxx +++ b/src/command/FingerprintCommands.cxx @@ -107,11 +107,10 @@ GetChromaprintCommand::DecodeStream(InputStream &input_stream, /* rewind the stream, so each plugin gets a fresh start */ try { - input_stream.Rewind(); + input_stream.LockRewind(); } catch (...) { } - const ScopeUnlock unlock(mutex); plugin.StreamDecode(*this, input_stream); }