From 093cb475bbfa0764b072e0173c7a9d8644d1067e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Dec 2016 21:34:43 +0100 Subject: [PATCH] output/Thread: simplify the retry_audio_format declaration --- src/output/OutputThread.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx index f3354bfe5..e326d510c 100644 --- a/src/output/OutputThread.cxx +++ b/src/output/OutputThread.cxx @@ -161,9 +161,8 @@ AudioOutput::Open() assert(filter_audio_format.IsValid()); - out_audio_format = filter_audio_format.WithMask(config_audio_format); - - const AudioFormat retry_audio_format = out_audio_format; + const auto retry_audio_format = out_audio_format = + filter_audio_format.WithMask(config_audio_format); retry_without_dsd: try {