From 30c00f4fb78b173e99787a2b85cf7db267ea505b Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Tue, 14 May 2013 03:42:59 +0200 Subject: [PATCH] deinterlace: set caps for buffer pool config --- gst/deinterlace/gstdeinterlace.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index b921ceee6d..6bc7526740 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -2603,6 +2603,7 @@ gst_deinterlace_propose_allocation (GstDeinterlace * self, GstQuery * query) GstCaps *caps; GstVideoInfo info; guint size; + GstStructure *config; gst_query_parse_allocation (query, &caps, NULL); @@ -2617,6 +2618,11 @@ gst_deinterlace_propose_allocation (GstDeinterlace * self, GstQuery * query) pool = gst_video_buffer_pool_new (); gst_query_add_allocation_pool (query, pool, size, 0, 0); + + config = gst_buffer_pool_get_config (pool); + gst_buffer_pool_config_set_params (config, caps, size, 0, 0); + gst_buffer_pool_set_config (pool, config); + gst_object_unref (pool); gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL);