Commit 8b3d9342 authored by Max Kellermann's avatar Max Kellermann

output/Thread: catch Pause() exceptions

parent e2b7c308
......@@ -597,9 +597,13 @@ AudioOutput::Pause()
break;
bool success;
{
try {
const ScopeUnlock unlock(mutex);
success = ao_plugin_pause(this);
} catch (const std::runtime_error &e) {
FormatError(e, "\"%s\" [%s] failed to pause",
name, plugin.name);
success = false;
}
if (!success) {
......
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