summaryrefslogtreecommitdiff
path: root/ext/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wayland')
-rw-r--r--ext/wayland/gstwaylandsink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c
index 199e45200..9fc5ece51 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 {