wpevideosrc: Fix frame stuttering in GL rendering path
authorPhilippe Normand <philn@igalia.com>
Tue, 16 Nov 2021 12:56:38 +0000 (12:56 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 16 Nov 2021 21:55:41 +0000 (21:55 +0000)
commita6fd76702549c525784b1a98a99f55ff3ab4ebca
tree725b171c426436be263d6682a0cd2e93f90b0c6f
parent053dd564a16dbd1a4bb35bfdecc77554eec76a8d
wpevideosrc: Fix frame stuttering in GL rendering path

Make sure the EGLImage we're rendering to the GL memory stays alive long enough,
until the the GL memory has been destroyed.

This change fixes tearing and black flashes artefacts that were happening
because the EGLImage was sometimes destroyed before the sink actually rendered
the associated texture.

Fixes #889

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1354>
subprojects/gst-plugins-bad/ext/wpe/gstwpevideosrc.cpp