output/Thread: update in_audio_format before ReopenFilter()

This commit is contained in:
Max Kellermann 2016-12-22 14:04:34 +01:00
parent d020172181
commit a8d343e07b

View File

@ -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();
}
}
/**