v4l2codecs: decoder: Fix drm format query

A late change that slipped through as it mainly affects NC12
at the moment.

Fixes: 4b07d54931 ("v4l2codecs: decoder: Translate V4L2 formats into DRM fourcc/mod pairs")
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8188>
This commit is contained in:
Robert Mader 2024-12-20 12:52:31 +01:00 committed by GStreamer Marge Bot
parent 19cea52dbd
commit 6c29395ea4

View file

@ -282,7 +282,7 @@ gst_v4l2_format_to_drm_format (guint32 pix_fmt, guint32 * out_drm_fourcc,
return FALSE;
if (out_drm_fourcc)
*out_drm_fourcc = fmt_desc->gst_fmt;
*out_drm_fourcc = fmt_desc->drm_fourcc;
if (out_drm_mod)
*out_drm_mod = fmt_desc->drm_modifier;
return TRUE;