From dce9d8bda516368a6c8b5d6753a4410decbb0446 Mon Sep 17 00:00:00 2001 From: Hyunil Date: Wed, 22 Jun 2016 15:19:32 +0900 Subject: [PATCH] Waylandsink : fix bug (Null exception) Change-Id: I21763218d0323853acffb2a84854d748da6e794d Signed-off-by: Hyunil --- ext/wayland/gstwaylandsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c index a07eb8e..66edd6a 100755 --- a/ext/wayland/gstwaylandsink.c +++ b/ext/wayland/gstwaylandsink.c @@ -398,7 +398,7 @@ gst_wayland_sink_update_last_buffer_geometry (GstWaylandSink * sink) GST_DEBUG ("gstbuffer ref count is %d", GST_OBJECT_REFCOUNT_VALUE (sink->last_buffer)); wlbuffer = gst_buffer_get_wl_buffer (sink->last_buffer); - if (wlbuffer) + g_return_if_fail (wlbuffer != NULL); wlbuffer->used_by_compositor = FALSE; /*need to render last buffer, reuse current GstWlBuffer */ render_last_buffer (sink); -- 2.7.4