Commit 8516a403 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: make CheckError() return the actual error code

parent 73ae2634
...@@ -45,11 +45,14 @@ int CheckError (vout_display_t *vd, xcb_connection_t *conn, ...@@ -45,11 +45,14 @@ int CheckError (vout_display_t *vd, xcb_connection_t *conn,
err = xcb_request_check (conn, ck); err = xcb_request_check (conn, ck);
if (err) if (err)
{ {
msg_Err (vd, "%s: X11 error %d", str, err->error_code); int code = err->error_code;
free (err); free (err);
return VLC_EGENERIC; msg_Err (vd, "%s: X11 error %d", str, code);
assert (code != 0);
return code;
} }
return VLC_SUCCESS; return 0;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment