Commit afc1236b authored by Max Kellermann's avatar Max Kellermann

player/Control: move code to ClearError()

parent bedd5f00
...@@ -185,12 +185,7 @@ void ...@@ -185,12 +185,7 @@ void
PlayerControl::LockClearError() PlayerControl::LockClearError()
{ {
Lock(); Lock();
ClearError();
if (error_type != PlayerError::NONE) {
error_type = PlayerError::NONE;
error.Clear();
}
Unlock(); Unlock();
} }
......
...@@ -326,6 +326,11 @@ public: ...@@ -326,6 +326,11 @@ public:
private: private:
void PauseLocked(); void PauseLocked();
void ClearError() {
error_type = PlayerError::NONE;
error.Clear();
}
public: public:
void LockPause(); void LockPause();
......
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