Synchronizing timestamps for compositor inputs

Hello. I have a pipeline where there’s a compositor element running from the beginning. After some time (let’s say, 5 minutes) I want to overlay a video on top of the compositor content.
The problem I’m facing is that the new loaded video gets fast forwarded for the duration of the pipeline (aka, it starts from the 5 minutes mark not from the beginning).
Is there some pre-processing I should do to the raw video frames before it enters the compositor request pad?

You can query the current position of the compositor and use gst_pad_set_offset() on a source pad in the compositor input branch to offset the 0-based timestamps (if you have a non-live input such as from file).

Thank you! setting the offset on the compositor sink pad solved the problem.