player/Control: move code to ClearError()

This commit is contained in:
Max Kellermann 2015-11-11 17:34:37 +01:00
parent bedd5f00f8
commit afc1236b06
2 changed files with 6 additions and 6 deletions

View File

@ -185,12 +185,7 @@ void
PlayerControl::LockClearError()
{
Lock();
if (error_type != PlayerError::NONE) {
error_type = PlayerError::NONE;
error.Clear();
}
ClearError();
Unlock();
}

View File

@ -326,6 +326,11 @@ public:
private:
void PauseLocked();
void ClearError() {
error_type = PlayerError::NONE;
error.Clear();
}
public:
void LockPause();