mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 12:21:17 +00:00
v4l2bufferpool: Don't drop buffer ref on qbuf
This function no longer take ownership of the buffer. CID 1414800
This commit is contained in:
parent
0e9fe263ca
commit
d8b18f6b8f
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue