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
1 changed files with 1 additions and 2 deletions

View File

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