diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2016-11-30 17:22:21 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-11-30 18:50:41 +0200 |
commit | e27fc343cc61bbf95a7b11fb1c69160da3e407ee (patch) | |
tree | 83ee81b25fd2e656645e2e1d6a61d1b08d095806 /gst/interlace | |
parent | 7f0697c758bd6aa66b9c1c3915a1ac93951730c2 (diff) | |
download | gstreamer-plugins-bad-e27fc343cc61bbf95a7b11fb1c69160da3e407ee.tar.gz |
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
Diffstat (limited to 'gst/interlace')
-rw-r--r-- | gst/interlace/gstinterlace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c index 88e68c042..bf140b551 100644 --- a/gst/interlace/gstinterlace.c +++ b/gst/interlace/gstinterlace.c @@ -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", + NULL); + } } ret = gst_pad_set_caps (interlace->srcpad, othercaps); |