videodecoder: Default caps sets format I420
authorStian Selnes <stian@pexip.com>
Thu, 13 Oct 2016 10:41:29 +0000 (12:41 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 20 Oct 2016 11:11:48 +0000 (14:11 +0300)
commit92392a47334ba8c63650d5d532ffdee79b056547
tree6bdc6e20a05118c83d4f10104d30a45205a00d7f
parent63c1f4aa331ead130938b1403e1a96676c631ddd
videodecoder: Default caps sets format I420

Also the format must be fixed on the default raw caps. If not
gst_video_info_from_caps() will fail and
gst_video_decoder_negotiate_default_caps() return FALSE.

The test simulates the use case where a gap event is received before
the first buffer causing the decoder to fall back to the default caps.

https://bugzilla.gnome.org/show_bug.cgi?id=773103
gst-libs/gst/video/gstvideodecoder.c
tests/check/libs/videodecoder.c