summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--videoout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/videoout.c b/videoout.c
index 51279e3..51bed8b 100644
--- a/videoout.c
+++ b/videoout.c
@@ -228,13 +228,13 @@ int vo_queue_buffer(struct videoout *vo, struct v4l2_video_buffer *buffer)
if (vo->queued[buffer->index]) {
fprintf(stderr, "buffer already queued\n");
- return 0;
+ return -EBUSY;
}
ret = v4l2_queue_buffer(vo->dev, buffer);
if (ret < 0) {
perror("VIDIOC_QBUF\n");
- return 0;
+ return ret;
}
vo->queued[buffer->index] = 1;
@@ -250,5 +250,5 @@ int vo_queue_buffer(struct videoout *vo, struct v4l2_video_buffer *buffer)
vo->ops->watch_fd(vo->dev->fd);
vo->num_queued++;
- return 1;
+ return 0;
}