Commit ad65081e authored by Seungha Yang's avatar Seungha Yang 🐑 Committed by GStreamer Marge Bot
Browse files

interlace: Don't set field-order field for progressive caps

That would cause negotiation issue

Part-of: <!2282>
parent 1ac30ad5
Pipeline #327242 waiting for manual action with stages
in 49 seconds
......@@ -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",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment