When there are elements between the demuxer and the muxer that introduce an offset to the running time, or when offsets are set on pads by the application, this shift must be taken into account when calculating the final pts_adjustement. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/913>