qmlglsrc: fix operation without any qmlglsink
authorMatthew Waters <matthew@centricular.com>
Wed, 21 Jul 2021 10:14:46 +0000 (20:14 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 28 Jul 2021 02:11:44 +0000 (02:11 +0000)
commitb1fb787859fd9d0069bd28c2098819e7625e63e1
tree6fd883c5f8752d9bdcde8389e4bc7b71c0319585
parent9499976fbb920038729ab64b49de565e3a778b07
qmlglsrc: fix operation without any qmlglsink

E.g. a pipeline like qmlglsrc ! gldownload ! ... would currently fail to
run because the OpenGL context are not created in the correct order.

The QtWindow also needs to know the OpenGL context used by downstream
elements in order to set optimize for the correct GstGLSyncMeta for
synchonisation purposes.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1036>
ext/qt/gstqtsrc.cc
ext/qt/qtwindow.cc
ext/qt/qtwindow.h