mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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/1751>
This commit is contained in:
parent
a52fc6deed
commit
4e4c26af4b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue