mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
v4l2bufferpool: Remove unreached acquire code
The acquire is done in _prepare now.
This commit is contained in:
parent
f13331e928
commit
97d0ca853e
1 changed files with 0 additions and 9 deletions
|
@ -194,14 +194,6 @@ gst_v4l2_buffer_pool_import_userptr (GstV4l2BufferPool * pool,
|
||||||
if (!gst_v4l2_is_buffer_valid (dest, &group))
|
if (!gst_v4l2_is_buffer_valid (dest, &group))
|
||||||
goto not_our_buffer;
|
goto not_our_buffer;
|
||||||
|
|
||||||
/* ensure we have a src */
|
|
||||||
if (src == NULL) {
|
|
||||||
g_return_val_if_fail (pool->other_pool != NULL, GST_FLOW_ERROR);
|
|
||||||
ret = gst_buffer_pool_acquire_buffer (pool->other_pool, &src, NULL);
|
|
||||||
if (ret != GST_FLOW_OK)
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!V4L2_TYPE_IS_OUTPUT (pool->obj->type))
|
if (!V4L2_TYPE_IS_OUTPUT (pool->obj->type))
|
||||||
flags = GST_MAP_READ;
|
flags = GST_MAP_READ;
|
||||||
else
|
else
|
||||||
|
@ -241,7 +233,6 @@ gst_v4l2_buffer_pool_import_userptr (GstV4l2BufferPool * pool,
|
||||||
gst_mini_object_set_qdata (GST_MINI_OBJECT (dest), GST_V4L2_IMPORT_QUARK,
|
gst_mini_object_set_qdata (GST_MINI_OBJECT (dest), GST_V4L2_IMPORT_QUARK,
|
||||||
data, (GDestroyNotify) _unmap_userptr_frame);
|
data, (GDestroyNotify) _unmap_userptr_frame);
|
||||||
|
|
||||||
done:
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
not_our_buffer:
|
not_our_buffer:
|
||||||
|
|
Loading…
Reference in a new issue