video-info: add "field-order" field to serialised caps also for interlace-mode=fields

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8219>
This commit is contained in:
Tim-Philipp Müller 2024-12-27 20:35:44 +01:00 committed by GStreamer Marge Bot
parent a62e517f6d
commit 3dcc6f4807

View file

@ -690,6 +690,7 @@ gst_video_info_to_caps (const GstVideoInfo * info)
gst_video_interlace_mode_to_string (info->interlace_mode), NULL);
if ((info->interlace_mode == GST_VIDEO_INTERLACE_MODE_INTERLEAVED ||
info->interlace_mode == GST_VIDEO_INTERLACE_MODE_FIELDS ||
info->interlace_mode == GST_VIDEO_INTERLACE_MODE_ALTERNATE) &&
GST_VIDEO_INFO_FIELD_ORDER (info) != GST_VIDEO_FIELD_ORDER_UNKNOWN) {
gst_caps_set_simple_static_str (caps, "field-order", G_TYPE_STRING,