mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-12 00:35:31 +01:00
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_);
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user