summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-05-25 20:21:34 +0900
committerTim-Philipp Müller <tim@centricular.com>2021-06-01 02:01:40 +0100
commit64a5b8de8249b610c43452f4b7fadd25a0cf65e8 (patch)
tree64d21c9f3c24dd2ceb0f46db6b1f5144505d0636
parent9f6b1bcfaca5566904aebc503978563a262cee93 (diff)
downloadgstreamer-plugins-bad-64a5b8de8249b610c43452f4b7fadd25a0cf65e8.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/2293>
-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 73ba69698..bdf132f79 100644
--- a/gst/interlace/gstinterlace.c
+++ b/gst/interlace/gstinterlace.c
@@ -932,9 +932,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",