output/Internal: simplify "return" statements in IteratePause()
This commit is contained in:
parent
5990017d51
commit
8f42ba13ef
@ -127,16 +127,12 @@ AudioOutput::BeginPause() noexcept
|
|||||||
bool
|
bool
|
||||||
AudioOutput::IteratePause() noexcept
|
AudioOutput::IteratePause() noexcept
|
||||||
{
|
{
|
||||||
bool success;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const ScopeUnlock unlock(mutex);
|
const ScopeUnlock unlock(mutex);
|
||||||
success = ao_plugin_pause(*this);
|
return ao_plugin_pause(*this);
|
||||||
} catch (const std::runtime_error &e) {
|
} catch (const std::runtime_error &e) {
|
||||||
FormatError(e, "\"%s\" [%s] failed to pause",
|
FormatError(e, "\"%s\" [%s] failed to pause",
|
||||||
name, plugin.name);
|
name, plugin.name);
|
||||||
success = false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user