qt: return a different GstGLDisplay object when the first sink requests
authorMatthew Waters <matthew@centricular.com>
Mon, 3 May 2021 07:39:05 +0000 (17:39 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 11 May 2021 06:40:38 +0000 (06:40 +0000)
commitc7181bedac0cca6e5e59953e78727610c9bdf241
tree01bdba9e5e25bd21168f27e392183b3fc0c66278
parent0ff50d672319ff8121ca9c210acfe0843e2d1776
qt: return a different GstGLDisplay object when the first sink requests

This allows the 'replace-gstreamer-opengl-context' context machinery to
correctly replace the OpenGL context used by the pipeline when the first
qmlglsink is added to the pipeline.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/982>
ext/qt/gstqtglutility.cc
ext/qt/gstqtglutility.h
ext/qt/gstqtoverlay.cc
ext/qt/qtitem.cc
ext/qt/qtwindow.cc