Commit 3fea624c authored by Max Kellermann's avatar Max Kellermann

output/Thread: use Close() after error in ReopenFilter()

Now that CloseFilter() may be called again, we can reduce code duplication.
parent 9007dd9a
......@@ -302,19 +302,7 @@ AudioOutput::ReopenFilter()
"Failed to open filter for \"%s\" [%s]",
name, plugin.name);
/* this is a little code duplication from Close(),
but we cannot call this function because we must
not call filter_close(filter) again */
pipe = nullptr;
current_chunk = nullptr;
open = false;
fail_timer.Update();
mutex.unlock();
ao_plugin_close(this);
mutex.lock();
Close(false);
return;
}
......
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