clocksync: Proxy allocation queries

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6515>
This commit is contained in:
Xavier Claessens 2024-04-02 11:54:52 -04:00 committed by GStreamer Marge Bot
parent b9ebe979ee
commit d129c8ebd3

View file

@ -221,6 +221,7 @@ gst_clock_sync_init (GstClockSync * clocksync)
gst_pad_set_chain_list_function (clocksync->sinkpad,
GST_DEBUG_FUNCPTR (gst_clock_sync_chain_list));
GST_PAD_SET_PROXY_CAPS (clocksync->sinkpad);
GST_PAD_SET_PROXY_ALLOCATION (clocksync->sinkpad);
gst_element_add_pad (GST_ELEMENT (clocksync), clocksync->sinkpad);
clocksync->srcpad = gst_pad_new_from_static_template (&srctemplate, "src");
@ -228,6 +229,7 @@ gst_clock_sync_init (GstClockSync * clocksync)
gst_pad_set_query_function (clocksync->srcpad, gst_clock_sync_src_query);
GST_PAD_SET_PROXY_CAPS (clocksync->srcpad);
GST_PAD_SET_PROXY_ALLOCATION (clocksync->srcpad);
gst_pad_set_event_function (clocksync->srcpad,
GST_DEBUG_FUNCPTR (gst_clock_sync_src_event));
gst_element_add_pad (GST_ELEMENT (clocksync), clocksync->srcpad);