Browse Source

UI: Fix vod track working with custom server

jp9000 5 years ago
parent
commit
eac66d773c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      UI/window-basic-main-outputs.cpp

+ 7 - 1
UI/window-basic-main-outputs.cpp

@@ -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);