UI: Fix bug with enforced audio encoder settings
I forgot that the track index is 1-based, not 0-bsaed.
This commit is contained in:
parent
3bbefc5b57
commit
0d704cdf92
@ -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]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user