1
0
Эх сурвалжийг харах

UI: Remove unused variables to fix errors in the CMake 3.0 rework

PatTheMav 2 жил өмнө
parent
commit
fe34045d6a

+ 0 - 2
UI/audio-encoders.cpp

@@ -141,7 +141,6 @@ static void PopulateBitrateLists()
 	call_once(once, []() {
 		struct obs_audio_info aoi;
 		obs_get_audio_info(&aoi);
-		uint32_t output_channels = get_audio_channels(aoi.speakers);
 
 		/* NOTE: ffmpeg_aac and ffmpeg_opus have the same properties
 		 * their bitrates will also be used as a fallback */
@@ -275,7 +274,6 @@ static void PopulateSimpleOpusBitrateMap()
 	call_once(once, []() {
 		struct obs_audio_info aoi;
 		obs_get_audio_info(&aoi);
-		uint32_t output_channels = get_audio_channels(aoi.speakers);
 
 		for (auto &bitrate : fallbackBitrates)
 			simpleOpusBitrateMap[bitrate] = "ffmpeg_opus";

+ 0 - 9
UI/window-basic-main-outputs.cpp

@@ -1060,9 +1060,6 @@ bool SimpleOutput::SetupStreaming(obs_service_t *service)
 			obs_output_get_signal_handler(streamOutput), "stop",
 			OBSStopStreaming, this);
 
-		bool isEncoded = obs_output_get_flags(streamOutput) &
-				 OBS_OUTPUT_ENCODED;
-
 		outputType = type;
 	}
 
@@ -1975,9 +1972,6 @@ inline void AdvancedOutput::SetupVodTrack(obs_service_t *service)
 
 bool AdvancedOutput::SetupStreaming(obs_service_t *service)
 {
-	int streamTrack =
-		config_get_int(main->Config(), "AdvOut", "TrackIndex");
-
 	if (!useStreamEncoder ||
 	    (!ffmpegOutput && !obs_output_active(fileOutput))) {
 		UpdateStreamSettings();
@@ -2029,9 +2023,6 @@ bool AdvancedOutput::SetupStreaming(obs_service_t *service)
 			obs_output_get_signal_handler(streamOutput), "stop",
 			OBSStopStreaming, this);
 
-		bool isEncoded = obs_output_get_flags(streamOutput) &
-				 OBS_OUTPUT_ENCODED;
-
 		outputType = type;
 	}