output/Thread: catch Pause() exceptions
This commit is contained in:
@@ -597,9 +597,13 @@ AudioOutput::Pause()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
bool success;
|
bool success;
|
||||||
{
|
try {
|
||||||
const ScopeUnlock unlock(mutex);
|
const ScopeUnlock unlock(mutex);
|
||||||
success = ao_plugin_pause(this);
|
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) {
|
if (!success) {
|
||||||
|
Reference in New Issue
Block a user