From df91f3738a39aedf796b3f136adc20331068d3a4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Dec 2016 20:43:29 +0100 Subject: [PATCH] output/Thread: remove a useless out_audio_format setting Now that I can see the Reopen() method clearly, it is obvious that the out_audio_format setting will get overwritten by the following Open() call. --- src/output/OutputThread.cxx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx index eec86dbd9..513d6babb 100644 --- a/src/output/OutputThread.cxx +++ b/src/output/OutputThread.cxx @@ -291,13 +291,6 @@ AudioOutput::Reopen() if (!config_audio_format.IsFullyDefined()) { Close(true); - - /* no audio format is configured: copy in->out, let - the output's open() method determine the effective - out_audio_format */ - out_audio_format = in_audio_format; - out_audio_format.ApplyMask(config_audio_format); - Open(); } else /* the audio format has changed, and all filters have