More const detach fixes
This commit is contained in:
@@ -929,7 +929,7 @@ void GstEngine::PipelineFinished(const int pipeline_id) {
|
||||
|
||||
qLog(Debug) << "Pipeline" << pipeline_id << "finished";
|
||||
|
||||
GstEnginePipelinePtr pipeline = old_pipelines_[pipeline_id];
|
||||
GstEnginePipelinePtr pipeline = old_pipelines_.value(pipeline_id);
|
||||
old_pipelines_.remove(pipeline_id);
|
||||
if (pipeline == fadeout_pause_pipeline_) {
|
||||
StopFadeoutPause();
|
||||
|
||||
@@ -1947,7 +1947,7 @@ void GstEnginePipeline::UpdateEqualizer() {
|
||||
|
||||
// Update band gains
|
||||
for (int i = 0; i < kEqBandCount; ++i) {
|
||||
float gain = eq_enabled_ ? static_cast<float>(eq_band_gains_[i]) : static_cast<float>(0.0);
|
||||
float gain = eq_enabled_ ? static_cast<float>(eq_band_gains_.value(i)) : static_cast<float>(0.0);
|
||||
if (gain < 0) {
|
||||
gain *= 0.24F;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user