Commit 64a5b8de authored by Seungha Yang's avatar Seungha Yang 🐑 Committed by Tim-Philipp Müller
Browse files

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

That would cause negotiation issue

Part-of: <gstreamer/gst-plugins-bad!2293>
parent 9f6b1bcf
......@@ -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",
......
Supports Markdown
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