0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Fix vod track working with custom server

This commit is contained in:
jp9000 2020-12-03 01:20:37 -08:00
parent 609ec9b556
commit eac66d773c

View File

@ -873,7 +873,13 @@ void SimpleOutput::SetupVodTrack(obs_service_t *service)
obs_data_t *settings = obs_service_get_settings(service);
const char *name = obs_data_get_string(settings, "service");
if (advanced && enable && ServiceSupportsVodTrack(name))
const char *id = obs_service_get_id(service);
if (strcmp(id, "rtmp_custom") == 0)
enable = false;
else
enable = advanced && enable && ServiceSupportsVodTrack(name);
if (enable)
obs_output_set_audio_encoder(streamOutput, aacArchive, 1);
else
clear_archive_encoder(streamOutput, SIMPLE_ARCHIVE_NAME);