diff --git a/subprojects/gst-plugins-good/ext/qt6/qt6glwindow.cc b/subprojects/gst-plugins-good/ext/qt6/qt6glwindow.cc index 7c7cdcff3c..a9a5e49729 100644 --- a/subprojects/gst-plugins-good/ext/qt6/qt6glwindow.cc +++ b/subprojects/gst-plugins-good/ext/qt6/qt6glwindow.cc @@ -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;