Vaapisink crashes if linked multiple times to the same pipeline with a tee element
Vaapisink crashes with a memory access error in gst_vaapisink_video_overlay_set_window_handle
if the sink is inserted multiple times in the same pipeline with a tee element at run time.
The crash seems to happen only if linking is done dynamically.
Static pipeline like this one is working: gst-launch-1.0 videotestsrc ! tee name=t ! queue ! vaapisink t. ! queue ! vaapisink
I created a small patch that fixed the issue for me.