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