提交 5b9c817d 编写于 作者: L Luca Barbato

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
上级 89fa2b56
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册