UI: Disallow exiting settings with no track in advanced mode

(cherry picked from commit 4b37692939)
This commit is contained in:
gxalpha 2023-05-12 18:16:27 +02:00 • committed by Ryan Foster
commit 3f3ff4fd92
3 changed files with 22 additions and 8 deletions

View file

@ -1792,6 +1792,10 @@ inline void AdvancedOutput::SetupRecording()
unsigned int cy = 0;
int idx = 0;
/* Hack to allow recordings without any audio tracks selected. It is no
* longer possible to select such a configuration in settings, but legacy
* configurations might still have this configured and we don't want to
* just break them. */
if (tracks == 0)
tracks = config_get_int(main->Config(), "AdvOut", "TrackIndex");