Only create audiopanorama when equalizer is enabled
This commit is contained in:
parent
560000f69d
commit
239f58e290
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue