Skip to content

Commit

Permalink
UI: Fix multitrack-video audio track index
Browse files Browse the repository at this point in the history
Fix a minor oversight from a recent commit. Audio
track indexing in the UI is 1-based while underlying
code uses 0-based indexing.
  • Loading branch information
lexano-ivs authored and derrod committed Jun 20, 2024
1 parent 6c38927 commit 5f98d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/window-basic-main-outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,7 @@ FutureHolder<bool> AdvancedOutput::SetupStreaming(obs_service_t *service)
const char *audio_encoder_id =
config_get_string(main->Config(), "AdvOut", "AudioEncoder");
int streamTrackIndex =
config_get_int(main->Config(), "AdvOut", "TrackIndex");
config_get_int(main->Config(), "AdvOut", "TrackIndex") - 1;

auto holder =
SetupMultitrackVideo(service, audio_encoder_id,
Expand Down

0 comments on commit 5f98d34

Please sign in to comment.