mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-06-23 17:34:00 +08:00
30a11bfe0a
The normal process is that `startCapture` and `VideoService::run` run in parallel, the `run` function waits for startCapture to complete, then sets the scale, and subsequently calls `stopCapture` and `startCapture`. If the `run` function does not wait long enough, `startCapture` initializes the surface with the original width and height, but the `start` flag is still false, meaning it can't call `stopCapture` and `startCapture`. This results in only capturing the upper-left portion of the virtual display. Signed-off-by: 21pages <sunboeasy@gmail.com>