mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
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:
parent
6646184791
commit
dbc6afd874
1 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue