Commit e45d13d4 authored by Max Kellermann's avatar Max Kellermann

player/Thread: add missing mutex lock around PlayerControl::SetError()

parent a431274b
......@@ -631,9 +631,10 @@ Player::SeekDecoder() noexcept
dc.Seek(where + start_time);
} catch (...) {
/* decoder failure */
const std::lock_guard<Mutex> lock(pc.mutex);
pc.SetError(PlayerError::DECODER,
std::current_exception());
pc.LockCommandFinished();
pc.CommandFinished();
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment