player/Thread: add missing mutex lock around PlayerControl::SetError()
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user