summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2017-08-02 17:16:21 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-08-02 17:18:43 -0400
commitd8b18f6b8f75c13165905a40676ac6ed169db724 (patch)
tree8722ac848014fe244ff0d45bde64685bf3f6b8de /sys
parent0e9fe263caef71d265f686e769d5a6d40713fd93 (diff)
v4l2bufferpool: Don't drop buffer ref on qbuf
This function no longer take ownership of the buffer. CID 1414800
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/gstv4l2bufferpool.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
index 6ed429bff..2bd17d818 100644
--- a/sys/v4l2/gstv4l2bufferpool.c
+++ b/sys/v4l2/gstv4l2bufferpool.c
@@ -1080,9 +1080,8 @@ gst_v4l2_buffer_pool_qbuf (GstV4l2BufferPool * pool, GstBuffer * buf)
gint index;
if (!gst_v4l2_is_buffer_valid (buf, &group)) {
- GST_LOG_OBJECT (pool, "unref copied/invalid buffer %p", buf);
- gst_buffer_unref (buf);
- return GST_FLOW_OK;
+ GST_ERROR_OBJECT (pool, "invalid buffer %p", buf);
+ return GST_FLOW_ERROR;
}
index = group->buffer.index;