output/Internal: merge REOPEN and OPEN

This commit is contained in:
Max Kellermann
2016-12-13 20:07:00 +01:00
parent 2775d747ac
commit 2bf91a0487
3 changed files with 8 additions and 13 deletions

View File

@@ -590,12 +590,10 @@ AudioOutput::Task()
break;
case Command::OPEN:
Open();
CommandFinished();
break;
case Command::REOPEN:
Reopen();
if (open)
Reopen();
else
Open();
CommandFinished();
break;