test/putsurface/putsurface: fix multi-thread issue on X11
authorXiang, Haihao <haihao.xiang@intel.com>
Mon, 16 May 2011 00:48:01 +0000 (08:48 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 16 May 2011 03:56:26 +0000 (11:56 +0800)
commit25040889c144b9ce7779bdbd7da03e4bbfee58f8
tree0d98d39cb143622b5e32311e1497fe57d3eba726
parentb03dde4dde23ce3d7ad5e66a778099c19ddc9b2c
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>
test/putsurface/putsurface_common.c