From 2774991107e64af51e8d56b6682df3637c0c173d Mon Sep 17 00:00:00 2001 From: dijunkun Date: Mon, 14 Apr 2025 16:49:31 +0800 Subject: [PATCH] [fix] only send hostname and resolution before sending first frame --- src/single_window/render.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/single_window/render.cpp b/src/single_window/render.cpp index 9085c6d..9144695 100644 --- a/src/single_window/render.cpp +++ b/src/single_window/render.cpp @@ -194,7 +194,8 @@ int Render::StartScreenCapturer() { int screen_capturer_init_ret = screen_capturer_->Init( 60, [this](unsigned char* data, int size, int width, int height) -> void { - if (!hostname_sent_ && width > 0 && height > 0) { + if (!hostname_sent_ && width > 0 && height > 0 && + start_screen_capturer_) { original_display_width_ = width; original_display_height_ = height; std::string host_name = GetHostName();