Browse Source

UI: Fix bug with enforced audio encoder settings

I forgot that the track index is 1-based, not 0-bsaed.
jp9000 10 years ago
parent
commit
0d704cdf92
1 changed files with 1 additions and 1 deletions
  1. 1 1
      obs/window-basic-main-outputs.cpp

+ 1 - 1
obs/window-basic-main-outputs.cpp

@@ -579,7 +579,7 @@ inline void AdvancedOutput::UpdateAudioSettings()
 	SetEncoderName(aacTrack[3], name4, "Track4");
 
 	for (size_t i = 0; i < 4; i++) {
-		if (applyServiceSettings && (int)i == streamTrackIndex)
+		if (applyServiceSettings && (int)(i + 1) == streamTrackIndex)
 			obs_service_apply_encoder_settings(main->GetService(),
 					nullptr, settings[i]);