Waylandsink : Set zero to bufferpool config size because we need to create wl_buffer... 37/49137/1 accepted/tizen/mobile/20151008.004234 accepted/tizen/tv/20151008.004252 accepted/tizen/wearable/20151008.004258 submit/tizen/20151007.064915
authorHyunil <hyunil46.park@samsung.com>
Wed, 7 Oct 2015 06:36:47 +0000 (15:36 +0900)
committerHyunil <hyunil46.park@samsung.com>
Wed, 7 Oct 2015 06:36:47 +0000 (15:36 +0900)
Change-Id: I4bcc7cdf5ed752f6f4218cb2f9c67bef425fd3a8
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
ext/wayland/gstwaylandsink.c

index b801784..db7caa6 100755 (executable)
@@ -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, &params);
         if (!gst_buffer_pool_set_config (newpool, structure)) {
           GST_DEBUG_OBJECT (bsink, "failed setting config");