player/Control: move code to ClearError()
This commit is contained in:
parent
bedd5f00f8
commit
afc1236b06
@ -185,12 +185,7 @@ void
|
||||
PlayerControl::LockClearError()
|
||||
{
|
||||
Lock();
|
||||
|
||||
if (error_type != PlayerError::NONE) {
|
||||
error_type = PlayerError::NONE;
|
||||
error.Clear();
|
||||
}
|
||||
|
||||
ClearError();
|
||||
Unlock();
|
||||
}
|
||||
|
||||
|
@ -326,6 +326,11 @@ public:
|
||||
private:
|
||||
void PauseLocked();
|
||||
|
||||
void ClearError() {
|
||||
error_type = PlayerError::NONE;
|
||||
error.Clear();
|
||||
}
|
||||
|
||||
public:
|
||||
void LockPause();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user