video-info: enfore RGB matrix for RGB formats
authorWim Taymans <wtaymans@redhat.com>
Wed, 20 Jan 2016 09:19:34 +0000 (10:19 +0100)
committerWim Taymans <wtaymans@redhat.com>
Wed, 20 Jan 2016 09:19:34 +0000 (10:19 +0100)
commit773e2476e64011474f1503b184180d1fa81f1162
tree746955dd3716ec52e14abebdbcaa46aed9609760
parent83fe1c7705172ae0a59ce388edd3dc3f2fd916e7
video-info: enfore RGB matrix for RGB formats

In gst_video_info_to_caps(), make sure we end up with an RGB matrix for
RGB formats and warn when the GstVideoInfo colorimetry is wrong.
In gst_video_info_from_caps(), fix the GstVideoInfo with an RGB matrix
for RGB formats and warn about inconsistent caps.

See https://bugzilla.gnome.org/show_bug.cgi?id=759624
gst-libs/gst/video/video-info.c