Commit afc1236b authored by Max Kellermann's avatar Max Kellermann

player/Control: move code to ClearError()

parent bedd5f00
......@@ -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();
......
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