mirror of
https://github.com/occ-ai/obs-localvocal
synced 2024-11-07 18:57:14 +00:00
fix shadhowed param
This commit is contained in:
parent
f67db47f09
commit
d4df2e8ee1
@ -603,14 +603,14 @@ obs_properties_t *transcription_filter_properties(void *data)
|
|||||||
obs_data_t *settings) {
|
obs_data_t *settings) {
|
||||||
UNUSED_PARAMETER(property);
|
UNUSED_PARAMETER(property);
|
||||||
UNUSED_PARAMETER(props);
|
UNUSED_PARAMETER(props);
|
||||||
struct transcription_filter_data *gf =
|
struct transcription_filter_data *gf_ =
|
||||||
static_cast<struct transcription_filter_data *>(data);
|
static_cast<struct transcription_filter_data *>(data);
|
||||||
shutdown_whisper_thread(gf);
|
shutdown_whisper_thread(gf_);
|
||||||
std::string external_model_file_path =
|
std::string external_model_file_path =
|
||||||
obs_data_get_string(settings, "whisper_model_path_external");
|
obs_data_get_string(settings, "whisper_model_path_external");
|
||||||
gf->whisper_context = init_whisper_context(external_model_file_path);
|
gf_->whisper_context = init_whisper_context(external_model_file_path);
|
||||||
std::thread new_whisper_thread(whisper_loop, gf);
|
std::thread new_whisper_thread(whisper_loop, gf_);
|
||||||
gf->whisper_thread.swap(new_whisper_thread);
|
gf_->whisper_thread.swap(new_whisper_thread);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
gf);
|
gf);
|
||||||
|
Loading…
Reference in New Issue
Block a user