test/putsurface/putsurface: fix multi-thread issue on X11
On X11, a VA display is dependent on the display returned by XOpenDisplay,
vaPutSurface maybe accesses this display. So the same access mechanism is needed
for vaPutSurface and other Xlib funtion calls. Another way is to call XInitThreads
before XOpenDisplay.
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Showing
Please register or sign in to comment