filter/AutoConvert: initialize Filter::out_audio_format

This commit is contained in:
Max Kellermann 2017-01-06 12:44:55 +01:00
parent 5284cd11a9
commit 1a9dfdfab8
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -1,4 +1,5 @@
ver 0.20.1 (not yet released)
* fix crash with volume_normalization enabled
ver 0.20 (2017/01/04)
* protocol

View File

@ -45,7 +45,8 @@ class AutoConvertFilter final : public Filter {
public:
AutoConvertFilter(std::unique_ptr<Filter> &&_filter,
std::unique_ptr<Filter> &&_convert)
:filter(std::move(_filter)), convert(std::move(_convert)) {}
:Filter(_filter->GetOutAudioFormat()),
filter(std::move(_filter)), convert(std::move(_convert)) {}
ConstBuffer<void> FilterPCM(ConstBuffer<void> src) override;
};