From: Randy Li Date: Mon, 2 Nov 2020 08:46:25 +0000 (+0000) Subject: wlvideoformat: fix DMA format convertor X-Git-Tag: 1.19.3~507^2~1154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e4c26af4be53088d28b37017a7554299dae1aa6;p=platform%2Fupstream%2Fgstreamer.git wlvideoformat: fix DMA format convertor In the most of case, this typo would work. But for ARGB8888 and XRGB8888, which shm format is not based on fourcc, which would never appear in format enumeration. Part-of: --- diff --git a/ext/wayland/wlvideoformat.c b/ext/wayland/wlvideoformat.c index e1d6271..68cec50 100644 --- a/ext/wayland/wlvideoformat.c +++ b/ext/wayland/wlvideoformat.c @@ -112,7 +112,7 @@ gst_wl_dmabuf_format_to_video_format (guint wl_format) guint i; for (i = 0; i < G_N_ELEMENTS (wl_formats); i++) - if (wl_formats[i].wl_shm_format == wl_format) + if (wl_formats[i].dma_format == wl_format) return wl_formats[i].gst_format; return GST_VIDEO_FORMAT_UNKNOWN;