videoutilsprivate: fill more video fields.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 11 Aug 2017 18:53:21 +0000 (20:53 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Mon, 14 Aug 2017 10:42:57 +0000 (12:42 +0200)
commit28943c4399d51b5077375e1e38abd1ac810722f5
treed6ed06adfec22c3d911b48554d9ef43f40ebb7f8
parentd375a28a37ce4da449b3bcc4b6cb5e306f90f28b
videoutilsprivate: fill more video fields.

__gst_video_element_proxy_caps is called by
__gst_video_element_proxy_getcaps with caps set to the caps
allowed downstream. As we didn't set colorimetry or
chroma-site on the resulting caps, upstream considered it
possible to use whatever values it wanted, leading to
not negotiated errors later on.

As the description for that function is:
"Takes caps and copies its video fields to tmpl_caps",
it seems legitimate to set these fields there.

https://bugzilla.gnome.org/show_bug.cgi?id=786172
gst-libs/gst/video/gstvideoutilsprivate.c