qt6: glwindow: Don't leak previously rendered buffer

If the consumer reads the buffers too slowily, simply unref the
previously rendered buffer instead of leaking it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7286>
This commit is contained in:
Nicolas Dufresne 2024-07-31 09:06:21 -04:00 committed by GStreamer Marge Bot
parent 28e16f897e
commit 5df658cfdd

View file

@ -270,6 +270,7 @@ done:
gst_gl_context_activate (this->priv->other_context, FALSE);
this->priv->result = ret;
gst_clear_buffer (&this->priv->produced_buffer);
this->priv->produced_buffer = this->priv->buffer;
this->priv->buffer = NULL;
this->priv->updated = TRUE;