{
GstV4l2BufferPool *pool = GST_V4L2_BUFFER_POOL (bpool);
GstV4l2Object *obj = pool->obj;
- const GstCaps *caps;
+ GstCaps *caps;
guint size, min_buffers, max_buffers;
GstAllocator *allocator;
GstAllocationParams params;
gst_object_ref (pool);
if (pool != NULL) {
- const GstCaps *pcaps;
+ GstCaps *pcaps;
GstStructure *config;
/* we had a pool, check caps */
GST_DEBUG_OBJECT (v4l2sink,
"we had a pool with caps %" GST_PTR_FORMAT, pcaps);
if (!gst_caps_is_equal (caps, pcaps)) {
+ gst_structure_free (config);
gst_object_unref (pool);
goto different_caps;
}
+ gst_structure_free (config);
}
/* we need at least 2 buffers to operate */
gst_query_add_allocation_pool (query, pool, size, 2, 0);
if (pool) {
GstStructure *config;
- const GstCaps *caps;
+ GstCaps *caps;
config = gst_buffer_pool_get_config (pool);
gst_buffer_pool_config_get_params (config, &caps, NULL, NULL, NULL);