V4L2 does not yet support this feature, this will skip over the
transition portion up to the next keyframe.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1404>
static gboolean
gst_v4l2_codec_vp9_dec_open (GstVideoDecoder * decoder)
{
+ GstVp9Decoder *vp9dec = GST_VP9_DECODER (decoder);
GstV4l2CodecVp9Dec *self = GST_V4L2_CODEC_VP9_DEC (decoder);
if (!gst_v4l2_decoder_open (self->decoder)) {
return FALSE;
}
+ /* V4L2 does not support non-keyframe resolution change, this will ask the
+ * base class to drop frame until the next keyframe as a workaround. */
+ gst_vp9_decoder_set_non_keyframe_format_change_support (vp9dec, FALSE);
+
return TRUE;
}