From ad65081ef92e26cd6534ae09851f92bd9c389537 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 25 May 2021 20:21:34 +0900 Subject: [PATCH] interlace: Don't set field-order field for progressive caps That would cause negotiation issue Part-of: --- gst/interlace/gstinterlace.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c index 8858d97f23..fa17d42ae2 100644 --- a/gst/interlace/gstinterlace.c +++ b/gst/interlace/gstinterlace.c @@ -961,9 +961,13 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter) * Interlaced feature and set interlace-mode=progressive */ for (i = 0; i < gst_caps_get_size (icaps); ++i) { GstCapsFeatures *features; + GstStructure *s = gst_caps_get_structure (icaps, i); features = gst_caps_get_features (icaps, i); gst_caps_features_remove (features, GST_CAPS_FEATURE_FORMAT_INTERLACED); + + /* Drop field-order field for sinkpad */ + gst_structure_remove_field (s, "field-order"); } gst_caps_set_simple (icaps, "interlace-mode", G_TYPE_STRING, "progressive",