From 104daade0dc6dd212edd4bb509967bde11a4ac2e Mon Sep 17 00:00:00 2001 From: "Cheah, Vincent Beng Keat" Date: Thu, 27 Jul 2023 15:53:55 +0800 Subject: [PATCH] waylandsink: Add gst_buffer_pool_config_set_params() to a pool Part-of: --- subprojects/gst-plugins-bad/ext/wayland/gstwaylandsink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/ext/wayland/gstwaylandsink.c b/subprojects/gst-plugins-bad/ext/wayland/gstwaylandsink.c index 7c99b14464..1455582012 100644 --- a/subprojects/gst-plugins-bad/ext/wayland/gstwaylandsink.c +++ b/subprojects/gst-plugins-bad/ext/wayland/gstwaylandsink.c @@ -773,6 +773,8 @@ gst_wayland_sink_propose_allocation (GstBaseSink * bsink, GstQuery * query) GstStructure *config; pool = gst_wl_video_buffer_pool_new (); config = gst_buffer_pool_get_config (pool); + gst_buffer_pool_config_set_params (config, + caps, self->video_info.size, 2, 0); gst_buffer_pool_config_set_allocator (config, gst_wl_shm_allocator_get (), NULL); gst_buffer_pool_set_config (pool, config);