mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] only send hostname and resolution before sending first frame
This commit is contained in:
@@ -194,7 +194,8 @@ int Render::StartScreenCapturer() {
|
|||||||
|
|
||||||
int screen_capturer_init_ret = screen_capturer_->Init(
|
int screen_capturer_init_ret = screen_capturer_->Init(
|
||||||
60, [this](unsigned char* data, int size, int width, int height) -> void {
|
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_width_ = width;
|
||||||
original_display_height_ = height;
|
original_display_height_ = height;
|
||||||
std::string host_name = GetHostName();
|
std::string host_name = GetHostName();
|
||||||
|
|||||||
Reference in New Issue
Block a user