video-info: check if alternate caps has the feature as well
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 11 Dec 2018 10:37:36 +0000 (11:37 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 25 Mar 2019 14:36:57 +0000 (15:36 +0100)
commit10ce73b6eb20ba86606863a571f20456f473de19
tree8756ca9aac7c039adff64d0e3cf982645c64a0d8
parent6ba860021cbb8de62a41724c66118a8598f93cc8
video-info: check if alternate caps has the feature as well

It's invalid to have a 'interlace-mode=alternate' without the Interlaced caps
feature as well.
Modify gst_video_info_from_caps() to reject such case so we can easily
spot them in bugged elements.
gst-libs/gst/video/video-info.c
tests/check/libs/video.c