GNOME Bugzilla – Bug 773103
videodecoder: Default caps sets format I420
Last modified: 2016-10-31 14:35:37 UTC
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.
Created attachment 337854 [details] [review] videodecoder: Default caps sets format I420
Review of attachment 337854 [details] [review]: That make no sense, I420 could not even exist in the template caps.
That is taken care of by using fixate on the allowed caps. So if, for instance, template or downstream only allows NV12, NV12 will be chosen. I420 will only be set if no format is specified in the allowed caps, or if multiple formats including I420 is allowed.
Ooops, submitted previous comments with wrong account. It was me... :-)
Attachment 337854 [details] pushed as 92392a4 - videodecoder: Default caps sets format I420