The Element parameter should usually be your videosink that you want to create your XOverlay with.
See Implementation
The Element parameter should usually be your videosink that you want to create your XOverlay with.