From d4df2e8ee1b7a3cd2d60af5f7e58d8e6193afd03 Mon Sep 17 00:00:00 2001 From: Roy Shilkrot Date: Sat, 23 Sep 2023 08:19:30 -0400 Subject: [PATCH] fix shadhowed param --- src/transcription-filter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/transcription-filter.cpp b/src/transcription-filter.cpp index 9db096e..8c6bf7c 100644 --- a/src/transcription-filter.cpp +++ b/src/transcription-filter.cpp @@ -603,14 +603,14 @@ obs_properties_t *transcription_filter_properties(void *data) obs_data_t *settings) { UNUSED_PARAMETER(property); UNUSED_PARAMETER(props); - struct transcription_filter_data *gf = + struct transcription_filter_data *gf_ = static_cast(data); - shutdown_whisper_thread(gf); + shutdown_whisper_thread(gf_); std::string external_model_file_path = obs_data_get_string(settings, "whisper_model_path_external"); - gf->whisper_context = init_whisper_context(external_model_file_path); - std::thread new_whisper_thread(whisper_loop, gf); - gf->whisper_thread.swap(new_whisper_thread); + gf_->whisper_context = init_whisper_context(external_model_file_path); + std::thread new_whisper_thread(whisper_loop, gf_); + gf_->whisper_thread.swap(new_whisper_thread); return true; }, gf);