deinterlace: set caps for buffer pool config

This commit is contained in:
Matej Knopp 2013-05-14 03:42:59 +02:00 committed by Sebastian Dröge
parent 4f0fdabf10
commit 30c00f4fb7

View file

@ -2603,6 +2603,7 @@ gst_deinterlace_propose_allocation (GstDeinterlace * self, GstQuery * query)
GstCaps *caps; GstCaps *caps;
GstVideoInfo info; GstVideoInfo info;
guint size; guint size;
GstStructure *config;
gst_query_parse_allocation (query, &caps, NULL); 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 (); pool = gst_video_buffer_pool_new ();
gst_query_add_allocation_pool (query, pool, size, 0, 0); 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_object_unref (pool);
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL);