codectimestamper: Use accept-intersect and accept-template caps

We should behave similarly to video parsers so we can use:
- accept-template as we can also accept caps with missing fields.
- accept-intersect to do quick check with the pad template caps as it is
enough. Users should have figured the appropriate full caps on a
previous caps query

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4341>
This commit is contained in:
Thibault Saunier 2023-04-04 17:54:51 -04:00 committed by GStreamer Marge Bot
parent 6646184791
commit dbc6afd874

View file

@ -170,6 +170,9 @@ gst_codec_timestamper_init (GstCodecTimestamper * self,
gst_pad_set_event_function (self->sinkpad,
GST_DEBUG_FUNCPTR (gst_codec_timestamper_sink_event));
GST_PAD_SET_PROXY_SCHEDULING (self->sinkpad);
GST_PAD_SET_ACCEPT_INTERSECT (self->sinkpad);
GST_PAD_SET_ACCEPT_TEMPLATE (self->sinkpad);
gst_element_add_pad (GST_ELEMENT (self), self->sinkpad);
template = gst_element_class_get_pad_template (GST_ELEMENT_CLASS (klass),