projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f0697c
)
interlace: Writing field-order into the src caps
author
Vivia Nikolaidou
<vivia@ahiru.eu>
Wed, 30 Nov 2016 15:22:21 +0000
(17:22 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 30 Nov 2016 16:50:41 +0000
(18:50 +0200)
Writing top-field-first vs bottom-field-first into the src caps
https://bugzilla.gnome.org/show_bug.cgi?id=775409
gst/interlace/gstinterlace.c
patch
|
blob
|
history
diff --git
a/gst/interlace/gstinterlace.c
b/gst/interlace/gstinterlace.c
index
88e68c0
..
bf140b5
100644
(file)
--- 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);