From fe34045d6a47416addb8a45f99c3cfdf6d8cde11 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Wed, 22 Mar 2023 18:18:56 +0100 Subject: [PATCH] UI: Remove unused variables to fix errors in the CMake 3.0 rework --- UI/audio-encoders.cpp | 2 -- UI/window-basic-main-outputs.cpp | 9 --------- 2 files changed, 11 deletions(-) diff --git a/UI/audio-encoders.cpp b/UI/audio-encoders.cpp index 08c4af32b..c9cdbd42b 100644 --- a/UI/audio-encoders.cpp +++ b/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"; diff --git a/UI/window-basic-main-outputs.cpp b/UI/window-basic-main-outputs.cpp index 597994e10..d6e2624cf 100644 --- a/UI/window-basic-main-outputs.cpp +++ b/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; }