any1 / neatvnc

A liberally licensed VNC server library with a clean interface
ISC License
126 stars 31 forks source link

Resolution change race #122

Closed any1 closed 1 month ago

any1 commented 1 month ago

A race occurs between the encoder and the main thread when changing resolution.

If the encoder is already encoding something when the resolution change happens, a frame of a wrong size can be sent right after the resolution has changed. That frame needs to be dropped.

any1 commented 1 month ago

Fixed.