From a8d343e07bf04fc95b785f7802e6d0449f05a7b9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 Dec 2016 14:04:34 +0100 Subject: [PATCH] output/Thread: update in_audio_format before ReopenFilter() --- src/output/OutputThread.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx index bb29e0ca3..a38ed19e2 100644 --- a/src/output/OutputThread.cxx +++ b/src/output/OutputThread.cxx @@ -288,10 +288,12 @@ AudioOutput::Reopen() !config_audio_format.IsFullyDefined()) { Close(true); Open(); - } else + } else { /* the audio format has changed, and all filters have to be reconfigured */ + in_audio_format = request.audio_format; ReopenFilter(); + } } /**