summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Li <ayaka@soulik.info>2020-11-02 08:46:25 +0000
committerTim-Philipp Müller <tim@centricular.com>2020-11-04 10:00:54 +0000
commit892f00d310e3fa2909a7d21e7a56c22a71dcfbef (patch)
tree34f4b965506c0573f9a87c848eb8e00cd89cd5ed
parent284187d536ecb9508ecd0a8da29514c58d1a50bb (diff)
downloadgstreamer-plugins-bad-892f00d310e3fa2909a7d21e7a56c22a71dcfbef.tar.gz
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1758>
-rw-r--r--ext/wayland/wlvideoformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wayland/wlvideoformat.c b/ext/wayland/wlvideoformat.c
index e1d6271ea..68cec5093 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;