output/Thread: catch Pause() exceptions
This commit is contained in:
parent
e2b7c30811
commit
8b3d934230
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue