From 5431fca99b5111e6d427177c829a5eab13af4c3c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 8 Aug 2017 14:02:58 +0200 Subject: output/Filtered: add attribute "log_name" --- src/output/Init.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/output/Init.cxx') diff --git a/src/output/Init.cxx b/src/output/Init.cxx index 775e90184..b33d3914c 100644 --- a/src/output/Init.cxx +++ b/src/output/Init.cxx @@ -166,6 +166,13 @@ FilteredAudioOutput::Configure(const ConfigBlock &block) config_audio_format.Clear(); } + { + char buffer[64]; + snprintf(buffer, sizeof(buffer), "\"%s\" (%s)", + name, plugin.name); + log_name = buffer; + } + /* set up the filter chain */ prepared_filter = filter_chain_new(); -- cgit v1.2.3