Commit b8aac3f8 authored by Max Kellermann's avatar Max Kellermann

output/Thread: catch and log send_tag() exceptions

parent 4aab97cc
...@@ -473,7 +473,12 @@ AudioOutput::PlayChunk(const MusicChunk *chunk) ...@@ -473,7 +473,12 @@ AudioOutput::PlayChunk(const MusicChunk *chunk)
if (tags && gcc_unlikely(chunk->tag != nullptr)) { if (tags && gcc_unlikely(chunk->tag != nullptr)) {
const ScopeUnlock unlock(mutex); const ScopeUnlock unlock(mutex);
ao_plugin_send_tag(this, *chunk->tag); try {
ao_plugin_send_tag(this, *chunk->tag);
} catch (const std::runtime_error &e) {
FormatError(e, "Failed to send tag to \"%s\" [%s]",
name, plugin.name);
}
} }
auto data = ConstBuffer<char>::FromVoid(ao_filter_chunk(this, chunk)); auto data = ConstBuffer<char>::FromVoid(ao_filter_chunk(this, chunk));
......
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