screenshot: screenshot handling while display initializing
authorGiWoong Kim <giwoong.kim@samsung.com>
Mon, 16 Mar 2015 04:04:57 +0000 (13:04 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Thu, 26 Mar 2015 07:09:07 +0000 (16:09 +0900)
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>
hw/vigs/vigs_server.c

index 3c3b184..5e26629 100644 (file)
@@ -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;
     }