qmlgl6src: Fix crash when use-default-fbo is false

When that property is set to its default qmlgl6src element simply crash
as it will call gst_video_frame_unmap() twice.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7290>
This commit is contained in:
Nicolas Dufresne 2024-08-01 11:21:09 -04:00 committed by GStreamer Marge Bot
parent 9cc363311d
commit c9df0a5799

View file

@ -224,7 +224,6 @@ Qt6GLWindow::afterRendering()
fbo_target = gl->BlitFramebuffer ? GL_READ_FRAMEBUFFER : GL_FRAMEBUFFER;
if (!this->priv->useDefaultFbo) {
gst_video_frame_unmap (&this->priv->mapped_frame);
ret = TRUE;
} else {