mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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>
This commit is contained in:
parent
1ac30ad53f
commit
ad65081ef9
1 changed files with 4 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue