[0.11] gst-plugins-good: v4l2: use public api
Wim Taymans
wtay at kemper.freedesktop.org
Mon Feb 27 00:33:19 PST 2012
Module: gst-plugins-good
Branch: 0.11
Commit: c17aa1565a4337888310bcc45a2722ae7b65748d
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=c17aa1565a4337888310bcc45a2722ae7b65748d
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Mon Feb 27 09:14:04 2012 +0100
v4l2: use public api
instead of poking into the private structures of the base class
---
sys/v4l2/gstv4l2bufferpool.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
index 7f4fcb6..10f2933 100644
--- a/sys/v4l2/gstv4l2bufferpool.c
+++ b/sys/v4l2/gstv4l2bufferpool.c
@@ -863,6 +863,7 @@ GstBufferPool *
gst_v4l2_buffer_pool_new (GstV4l2Object * obj, GstCaps * caps)
{
GstV4l2BufferPool *pool;
+ GstStructure *s;
gint 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->obj = obj;
- gst_buffer_pool_config_set (GST_BUFFER_POOL_CAST (pool)->config, caps,
- obj->sizeimage, 2, 0, 0, 0);
+ s = gst_buffer_pool_get_config (GST_BUFFER_POOL_CAST (pool));
+ 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);
More information about the gstreamer-commits
mailing list