waylandsink: Add gst_buffer_pool_config_set_params() to a pool

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5103>
This commit is contained in:
Cheah, Vincent Beng Keat 2023-07-27 15:53:55 +08:00 committed by GStreamer Marge Bot
parent 6e22846301
commit 104daade0d

View file

@ -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);