From 47d5f52924c404b20804be606d71fb91cdbad7e3 Mon Sep 17 00:00:00 2001 From: Hyunil Date: Wed, 7 Oct 2015 15:36:47 +0900 Subject: [PATCH] Waylandsink : Set zero to bufferpool config size because we need to create wl_buffer in everyframe. Change-Id: I4bcc7cdf5ed752f6f4218cb2f9c67bef425fd3a8 Signed-off-by: Hyunil --- ext/wayland/gstwaylandsink.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c index b801784..db7caa6 100755 --- a/ext/wayland/gstwaylandsink.c +++ b/ext/wayland/gstwaylandsink.c @@ -1066,8 +1066,10 @@ gst_wayland_sink_render (GstBaseSink * bsink, GstBuffer * buffer) return FALSE; } structure = gst_buffer_pool_get_config (newpool); - gst_buffer_pool_config_set_params (structure, sink->caps, - sink->video_info.size, 2, 0); + /*When the buffer is released, Core compare size with buffer size, + wl_buffer is not created if the size is same. It is a very critical problem + So we set 0 to size */ + gst_buffer_pool_config_set_params (structure, sink->caps, 0, 2, 0); gst_buffer_pool_config_set_allocator (structure, NULL, ¶ms); if (!gst_buffer_pool_set_config (newpool, structure)) { GST_DEBUG_OBJECT (bsink, "failed setting config"); -- 2.7.4