From: GiWoong Kim Date: Mon, 16 Mar 2015 04:04:57 +0000 (+0900) Subject: screenshot: screenshot handling while display initializing X-Git-Tag: TizenStudio_2.0_p3.0~303^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01bc7331e7f81d6674b8412adc8f8a70ea8152b1;p=sdk%2Femulator%2Fqemu.git screenshot: screenshot handling while display initializing Emulator makes a black screen shot image for screenshot window if root surface has not been ready yet in VIGS. Change-Id: I72eeb10bff06f1bb892436dfff53863c9bf03d64 Signed-off-by: GiWoong Kim --- diff --git a/hw/vigs/vigs_server.c b/hw/vigs/vigs_server.c index 3c3b184..5e26629 100644 --- a/hw/vigs/vigs_server.c +++ b/hw/vigs/vigs_server.c @@ -444,9 +444,11 @@ static void vigs_server_capture_work(struct work_queue_item *wq_item) struct vigs_server *server = item->server; struct vigs_surface *root_sfc = server->root_sfc; bool captured = false; - void *pixels; + void *pixels = NULL; if (!root_sfc) { + VIGS_LOG_WARN("not ready to capture"); + server->capture_ops->process_captured(captured, pixels, 0, 0); return; }