mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-07 07:16:21 +09:00
Fix kms capture crash on wayland if x11 is not available (always the case in the flatpak)
This commit is contained in:
@@ -203,6 +203,9 @@ static void gsr_capture_kms_tick(gsr_capture *cap, AVCodecContext *video_codec_c
|
|||||||
(void)video_codec_context;
|
(void)video_codec_context;
|
||||||
gsr_capture_kms *self = cap->priv;
|
gsr_capture_kms *self = cap->priv;
|
||||||
|
|
||||||
|
if(!self->is_x11)
|
||||||
|
return;
|
||||||
|
|
||||||
while(XPending(self->params.egl->x11.dpy)) {
|
while(XPending(self->params.egl->x11.dpy)) {
|
||||||
XNextEvent(self->params.egl->x11.dpy, &self->xev);
|
XNextEvent(self->params.egl->x11.dpy, &self->xev);
|
||||||
gsr_cursor_update(&self->x11_cursor, &self->xev);
|
gsr_cursor_update(&self->x11_cursor, &self->xev);
|
||||||
|
|||||||
Reference in New Issue
Block a user