summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-05-25 20:21:34 +0900
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-05-27 08:15:15 +0000
commitad65081ef92e26cd6534ae09851f92bd9c389537 (patch)
tree858a6cf6b5a24cf3860b090bc9c3b4166c40b3dc
parent1ac30ad53fff9b572212d7727695b1424b803214 (diff)
downloadgstreamer-plugins-bad-ad65081ef92e26cd6534ae09851f92bd9c389537.tar.gz
interlace: Don't set field-order field for progressive caps
That would cause negotiation issue Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2282>
-rw-r--r--gst/interlace/gstinterlace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c
index 8858d97f2..fa17d42ae 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",