deinterlace: set caps for buffer pool config
authorMatej Knopp <matej.knopp@gmail.com>
Tue, 14 May 2013 01:42:59 +0000 (03:42 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 14 May 2013 07:38:24 +0000 (09:38 +0200)
gst/deinterlace/gstdeinterlace.c

index b921ceee6d9dd34aad9ae58a7704d3aa6ddfe386..6bc7526740357b19aa0c7879900b0bd820a746af 100644 (file)
@@ -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);