Fixes a case where adding a qmlgloverlay element after an existing
qmlglsink elements was already in the pipeline would create an entirely
separate GstGLDisplay pointing to the same underlying display resource.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1050>
GST_INFO ("returning previously created display");
G_UNLOCK (display_lock);
return display;
- } else if (sink) {
- sink_retrieved = sink;
}
gst_clear_object (&display);
}
+ if (sink)
+ sink_retrieved = sink;
GST_INFO ("QGuiApplication::instance()->platformName() %s", app->platformName().toUtf8().data());