mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
28e16f897e
commit
5df658cfdd
1 changed files with 1 additions and 0 deletions
|
@ -270,6 +270,7 @@ done:
|
||||||
gst_gl_context_activate (this->priv->other_context, FALSE);
|
gst_gl_context_activate (this->priv->other_context, FALSE);
|
||||||
|
|
||||||
this->priv->result = ret;
|
this->priv->result = ret;
|
||||||
|
gst_clear_buffer (&this->priv->produced_buffer);
|
||||||
this->priv->produced_buffer = this->priv->buffer;
|
this->priv->produced_buffer = this->priv->buffer;
|
||||||
this->priv->buffer = NULL;
|
this->priv->buffer = NULL;
|
||||||
this->priv->updated = TRUE;
|
this->priv->updated = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue