Unsafe eglimage cache usage in gstglupload.c in combination with tee
gstglupload.c
with tee calls _set_cached_eglimage
and potentially frees the previously stored eglimage pointer, and later triggers critical warnings when the eglimage is unreffed again & potentially causes segfaults.
From gstreamer irc:
00:55 < ndufresne> zubzub: ah, the cache is still not tee safe?
00:56 < ndufresne> We've fixed many cache over the time, so I can't remember if that one is still broken... But you can't cache on the buffer itself, that's not safe
Tested on gstreamer 1.20.1