Waylandsink : In case of flush buffer, except redraw pending. 30/82130/1
authorHyunil <hyunil46.park@samsung.com>
Mon, 1 Aug 2016 04:36:33 +0000 (13:36 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 1 Aug 2016 04:36:33 +0000 (13:36 +0900)
Change-Id: I42e56cb0c8b10e6de0c01bfeb05b572d30498589
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
ext/wayland/gstwaylandsink.c

index e9fb4f0..2ca38e8 100755 (executable)
@@ -519,6 +519,7 @@ gst_wayland_sink_copy_mm_video_buf_info_to_flush (GstWlDisplay * display,
       display->stride_height[i] = mm_video_buf->stride_height[i];
       display->native_video_size += display->plane_size[i];
     }
+    memset (mm_video_buf, 0, sizeof(MMVideoBuffer));
   }
   return ret;
 }
@@ -1425,7 +1426,7 @@ gst_wayland_sink_render (GstBaseSink * bsink, GstBuffer * buffer)
 #endif
   }
   /* drop buffers until we get a frame callback */
-  if (g_atomic_int_get (&sink->redraw_pending) == TRUE)
+  if (g_atomic_int_get (&sink->redraw_pending) == TRUE && !gst_wayland_sink_check_use_gapless (sink))
     goto done;
   /* make sure that the application has called set_render_rectangle() */
   if (G_UNLIKELY (sink->window->render_rectangle.w == 0))