v4l2videodec: Unable to play vp8 and vp9 streams
After gstreamer upgrade to version 1.18, vp8 and vp9 supported profiles are listed in v4l2 decoder sink caps if driver supports VIDIOC_QUERYMENU with id V4L2_CID_MPEG_VIDEO_VPX_PROFILE. It will cause caps negotiation fail between v4l2 decoder and its upstream element's src caps when check "accept = gst_caps_is_subset (caps, template_caps);" with log below
videodecoder gstvideodecoder.c:1958:gst_video_decoder_sink_query_default: caps: video/x-vp8, width=(int)1920, height=(int)816, framerate=(fraction)23/1 videodecoder gstvideodecoder.c:1959:gst_video_decoder_sink_query_default: template caps: video/x-vp8, profile=(string){ 0, 1, 2, 3 }
So can we not to add vp8 and vp9 supported profiles for sink caps to avoid negotiation fail?