mirror of https://github.com/intel/libva-utils.git
putsurface_wayland: fix segmentation fault in multithreads
Otherwise thread1 will dereference a NULL pointer Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
This commit is contained in:
parent
d7da46e6c0
commit
89d1a17a2f
|
@ -277,7 +277,7 @@ create_window(void *win_display, int x, int y, int width, int height)
|
|||
drawable2 = malloc(sizeof(*drawable2));
|
||||
assert(drawable2);
|
||||
drawable2->display = display;
|
||||
drawable1->surface = surface2;
|
||||
drawable2->surface = surface2;
|
||||
drawable2->redraw_pending = 0;
|
||||
|
||||
/* global out */
|
||||
|
|
Loading…
Reference in New Issue