From 61a4cf7d6df1a684a6f4c64ed04de6212216c5b9 Mon Sep 17 00:00:00 2001 From: "hoony.yu" Date: Thu, 14 Oct 2010 20:27:43 -0700 Subject: S5PC11X: OVERLAY: Fix a bug - queueBuffer err must not queue buffer before commit. Change-Id: I2ab7685200857fb9785dd8756943a02da0150974 Signed-off-by: hoony.yu --- liboverlay/overlay.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'liboverlay') diff --git a/liboverlay/overlay.cpp b/liboverlay/overlay.cpp index 2a3e8db..73c3501 100644 --- a/liboverlay/overlay.cpp +++ b/liboverlay/overlay.cpp @@ -1309,6 +1309,7 @@ int overlay_queueBuffer(struct overlay_data_device_t *dev, enable_streaming(ctx->shared, ctx->ctl_fd); } + if (!ctx->shared->controlReady) return -1; int rc = v4l2_overlay_q_buf( ctx->ctl_fd, (int)buffer, (int) ctx->zerocopy ); if (rc == 0 && ctx->qd_buf_count < ctx->num_buffers) { ctx->qd_buf_count ++; -- cgit v1.1