A few fixes on the XDP ScreenCast code
Found when playing with OBS. Also took me to submit this: https://github.com/obsproject/obs-studio/pull/7470
Edited by Aleix Pol Gonzalez
Found when playing with OBS. Also took me to submit this: https://github.com/obsproject/obs-studio/pull/7470