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

This commit is contained in:
Max Kellermann 2017-12-22 00:35:18 +01:00
parent a431274b32
commit e45d13d469
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}