no struct null init

This commit is contained in:
Roy Shilkrot
2023-08-22 17:08:32 +03:00
parent 343bebd6ff
commit 759a79f51e

View File

@@ -53,18 +53,18 @@ struct transcription_filter_data {
bool active = false;
// Text source to output the subtitles
obs_weak_source_t *text_source = nullptr;
char *text_source_name = nullptr;
std::unique_ptr<std::mutex> text_source_mutex = nullptr;
obs_weak_source_t *text_source;
char *text_source_name;
std::unique_ptr<std::mutex> text_source_mutex;
// Callback to set the text in the output text source (subtitles)
std::function<void(const std::string &str)> setTextCallback;
// Use std for thread and mutex
std::thread whisper_thread;
std::unique_ptr<std::mutex> whisper_buf_mutex = nullptr;
std::unique_ptr<std::mutex> whisper_ctx_mutex = nullptr;
std::unique_ptr<std::condition_variable> wshiper_thread_cv = nullptr;
std::unique_ptr<std::mutex> whisper_buf_mutex;
std::unique_ptr<std::mutex> whisper_ctx_mutex;
std::unique_ptr<std::condition_variable> wshiper_thread_cv;
};
// Audio packet info