From: Hyunil Date: Wed, 7 Oct 2015 06:36:47 +0000 (+0900) Subject: Waylandsink : Set zero to bufferpool config size because we need to create wl_buffer... X-Git-Tag: accepted/tizen/unified/20220217.153506~2^2~10^2~9^2~12^2~2^2~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47d5f52924c404b20804be606d71fb91cdbad7e3;p=platform%2Fupstream%2Fgstreamer.git Waylandsink : Set zero to bufferpool config size because we need to create wl_buffer in everyframe. Change-Id: I4bcc7cdf5ed752f6f4218cb2f9c67bef425fd3a8 Signed-off-by: Hyunil --- 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");