Skip to content
Snippets Groups Projects
Commit 5b9c817d authored by Luca Barbato's avatar Luca Barbato
Browse files

x11grab: Check XFixesGetCursorImage return value

It could return NULL if the cursor is outside the screen, the connection
timed out or the system is out of memory.

CC: libav-stable@libav.org
parent 89fa2b56
No related branches found
No related tags found
No related merge requests found
......@@ -392,6 +392,8 @@ static void paint_mouse_pointer(XImage *image, X11GrabContext *s)
return;
xcim = XFixesGetCursorImage(dpy);
if (!xcim)
return;
x = xcim->x - xcim->xhot;
y = xcim->y - xcim->yhot;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment