Commit e27fc343 authored by Vivia Nikolaidou's avatar Vivia Nikolaidou 🦆 Committed by Sebastian Dröge

interlace: Writing field-order into the src caps

Writing top-field-first vs bottom-field-first into the src caps
parent 7f0697c7
......@@ -408,6 +408,11 @@ gst_interlace_setcaps (GstInterlace * interlace, GstCaps * caps)
interlace->passthrough = FALSE;
gst_caps_set_simple (othercaps, "framerate", GST_TYPE_FRACTION,
interlace->src_fps_n, interlace->src_fps_d, NULL);
if (interlace->pattern <= GST_INTERLACE_PATTERN_2_2) {
gst_caps_set_simple (othercaps, "field-order", G_TYPE_STRING,
interlace->top_field_first ? "top-field-first" : "bottom-field-first",
ret = gst_pad_set_caps (interlace->srcpad, othercaps);
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