mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
v4l2: use public api
instead of poking into the private structures of the base class
This commit is contained in:
parent
cc0511f5d8
commit
c17aa1565a
1 changed files with 4 additions and 2 deletions
|
@ -863,6 +863,7 @@ GstBufferPool *
|
||||||
gst_v4l2_buffer_pool_new (GstV4l2Object * obj, GstCaps * caps)
|
gst_v4l2_buffer_pool_new (GstV4l2Object * obj, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstV4l2BufferPool *pool;
|
GstV4l2BufferPool *pool;
|
||||||
|
GstStructure *s;
|
||||||
gint fd;
|
gint fd;
|
||||||
|
|
||||||
fd = v4l2_dup (obj->video_fd);
|
fd = v4l2_dup (obj->video_fd);
|
||||||
|
@ -873,8 +874,9 @@ gst_v4l2_buffer_pool_new (GstV4l2Object * obj, GstCaps * caps)
|
||||||
pool->video_fd = fd;
|
pool->video_fd = fd;
|
||||||
pool->obj = obj;
|
pool->obj = obj;
|
||||||
|
|
||||||
gst_buffer_pool_config_set (GST_BUFFER_POOL_CAST (pool)->config, caps,
|
s = gst_buffer_pool_get_config (GST_BUFFER_POOL_CAST (pool));
|
||||||
obj->sizeimage, 2, 0, 0, 0);
|
gst_buffer_pool_config_set (s, caps, obj->sizeimage, 2, 0, 0, 0);
|
||||||
|
gst_buffer_pool_set_config (GST_BUFFER_POOL_CAST (pool), s);
|
||||||
|
|
||||||
return GST_BUFFER_POOL (pool);
|
return GST_BUFFER_POOL (pool);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue