From 9bbd5ef722904d5fb7009da77b1e09a5b9dfc713 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 21 Nov 2017 23:11:02 -0500 Subject: [PATCH] waylandsink: Only try SHM for single memory buffer https://bugzilla.gnome.org/show_bug.cgi?id=790057 --- 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 199e452001..9fc5ece519 100644 --- a/ext/wayland/gstwaylandsink.c +++ b/ext/wayland/gstwaylandsink.c @@ -704,7 +704,7 @@ gst_wayland_sink_show_frame (GstVideoSink * vsink, GstBuffer * buffer) } if (!wbuf && gst_wl_display_check_format_for_shm (sink->display, format)) { - if (gst_is_fd_memory (mem)) { + if (gst_buffer_n_memory (buffer) == 1 && gst_is_fd_memory (mem)) { wbuf = gst_wl_shm_memory_construct_wl_buffer (mem, sink->display, &sink->video_info); } else {