diff options
-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 ++; |