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

View File

@@ -631,9 +631,10 @@ Player::SeekDecoder() noexcept
dc.Seek(where + start_time); dc.Seek(where + start_time);
} catch (...) { } catch (...) {
/* decoder failure */ /* decoder failure */
const std::lock_guard<Mutex> lock(pc.mutex);
pc.SetError(PlayerError::DECODER, pc.SetError(PlayerError::DECODER,
std::current_exception()); std::current_exception());
pc.LockCommandFinished(); pc.CommandFinished();
return false; return false;
} }