Skip to content

vnc: Copy pixels using the right destination stride

We're copying the pixels in a separate thread managed by PipeWire, and in this thread, accessing the VNC framebuffer dimension and stride is racy. Instead of fetching the dimension directly, pass the expected width and get the stride it will eventually have.

Already before this patch, when the copied pixel end up on the main thread and the dimension still doesn't match up, the frame will be dropped.

Merge request reports