1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-13 00:56:45 +01:00

Only create audiopanorama when equalizer is enabled

This commit is contained in:
Jonas Kvinge 2019-04-21 20:13:03 +02:00
parent 560000f69d
commit 239f58e290

View File

@ -257,9 +257,8 @@ bool GstEnginePipeline::InitAudioBin() {
volume_ = engine_->CreateElement("volume", audiobin_); volume_ = engine_->CreateElement("volume", audiobin_);
} }
audio_panorama_ = engine_->CreateElement("audiopanorama", audiobin_, false);
if (eq_enabled_) { if (eq_enabled_) {
audio_panorama_ = engine_->CreateElement("audiopanorama", audiobin_, false);
equalizer_preamp_ = engine_->CreateElement("volume", audiobin_, false); equalizer_preamp_ = engine_->CreateElement("volume", audiobin_, false);
equalizer_ = engine_->CreateElement("equalizer-nbands", audiobin_, false); equalizer_ = engine_->CreateElement("equalizer-nbands", audiobin_, false);
} }