diff --git a/core/application/application.cpp b/core/application/application.cpp index 5c3c59e..2b1115f 100644 --- a/core/application/application.cpp +++ b/core/application/application.cpp @@ -13,13 +13,8 @@ application::application() { void application::init() { // 创建控制台日志记录器 -#if PLATFORM_MACOS auto console_sink = std::make_shared(); console_sink->set_level(spdlog::level::info); // 设置控制台日志级别 -#else - auto console_sink = std::make_shared(); - console_sink->set_level(spdlog::level::info); // 设置控制台日志级别 -#endif // 创建文件日志记录器 auto file_sink = std::make_shared("logs/log.txt", 0, 0); // 每天创建一个新的日志文件 diff --git a/core/audio/plugin_host/vst2/vst2_plugin_host.cpp b/core/audio/plugin_host/vst2/vst2_plugin_host.cpp index e354bc3..27cca2e 100644 --- a/core/audio/plugin_host/vst2/vst2_plugin_host.cpp +++ b/core/audio/plugin_host/vst2/vst2_plugin_host.cpp @@ -222,7 +222,7 @@ void vst2_plugin_host::idle_editor() { } bool vst2_plugin_host::has_editor() const { - return effect_->flags & effFlagsHasEditor; + return effect_ && effect_->flags & effFlagsHasEditor; } void vst2_plugin_host::get_editor_size(uint32_t& width, uint32_t& height) const {