diff options
author | hoony.yu <hoony.yu@samsung.com> | 2010-10-14 20:27:43 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2010-10-19 18:42:01 -0700 |
commit | 61a4cf7d6df1a684a6f4c64ed04de6212216c5b9 (patch) | |
tree | d0e209d21544341d83b6c0274ad8abf13f638719 /liboverlay | |
parent | 064455fe4cf93cf4944e0a8a454da3413891a53f (diff) | |
download | device_samsung_crespo-61a4cf7d6df1a684a6f4c64ed04de6212216c5b9.zip device_samsung_crespo-61a4cf7d6df1a684a6f4c64ed04de6212216c5b9.tar.gz device_samsung_crespo-61a4cf7d6df1a684a6f4c64ed04de6212216c5b9.tar.bz2 |
S5PC11X: OVERLAY: Fix a bug - queueBuffer err
must not queue buffer before commit.
Change-Id: I2ab7685200857fb9785dd8756943a02da0150974
Signed-off-by: hoony.yu <hoony.yu@samsung.com>
Diffstat (limited to 'liboverlay')
-rw-r--r-- | liboverlay/overlay.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 ++; |