mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
interlace: Writing field-order into the src caps
Writing top-field-first vs bottom-field-first into the src caps https://bugzilla.gnome.org/show_bug.cgi?id=775409
This commit is contained in:
parent
7f0697c758
commit
e27fc343cc
1 changed files with 5 additions and 0 deletions
|
@ -408,6 +408,11 @@ gst_interlace_setcaps (GstInterlace * interlace, GstCaps * caps)
|
||||||
interlace->passthrough = FALSE;
|
interlace->passthrough = FALSE;
|
||||||
gst_caps_set_simple (othercaps, "framerate", GST_TYPE_FRACTION,
|
gst_caps_set_simple (othercaps, "framerate", GST_TYPE_FRACTION,
|
||||||
interlace->src_fps_n, interlace->src_fps_d, NULL);
|
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",
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = gst_pad_set_caps (interlace->srcpad, othercaps);
|
ret = gst_pad_set_caps (interlace->srcpad, othercaps);
|
||||||
|
|
Loading…
Reference in a new issue