From dbc6afd8748f830d87c262f1f16d2faef9749894 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 4 Apr 2023 17:54:51 -0400 Subject: [PATCH] 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: --- .../gst-plugins-bad/gst/codectimestamper/gstcodectimestamper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/codectimestamper/gstcodectimestamper.c b/subprojects/gst-plugins-bad/gst/codectimestamper/gstcodectimestamper.c index 393e1b72ea..396ad26fe4 100644 --- a/subprojects/gst-plugins-bad/gst/codectimestamper/gstcodectimestamper.c +++ b/subprojects/gst-plugins-bad/gst/codectimestamper/gstcodectimestamper.c @@ -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),