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 <giwoong.kim@samsung.com>
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;
}