Mimicking playbin's subtitles

I noticed that the way playbin handles subtitles is a lot better than using a uridecodebin + subtitleoverlay combination. What does playbin use or do under the hood to improve subtitle placement, etc? I would like to get the same results as playbin for managing subtitles.

gst-launch-1.0 subtitleoverlay name=t font-desc="Sans bold 16" ! videoconvert ! autovideosink uridecodebin3 name=d uri=file:///path/to/video-with-subtitles.mkv ! t.video_sink d.text_0 ! t.subtitle_sink

This is not an answer, though you could have a look to playbin sources.

Yeah, I’ve been looking at them for the past few days trying to wrap my head around it, but haven’t been able to determine what exactly playbin does differently.