After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796456 - Only one qmlglsink possible if using windows
Only one qmlglsink possible if using windows
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.12.4
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-30 15:17 UTC by holger.weber
Modified: 2018-11-03 15:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description holger.weber 2018-05-30 15:17:41 UTC
I use QT 5.9.1 on windows10 with an intel graphics card. Using one output sink is no problem.
Only adding multiple GstGLVideoItems doesn’t work. 
 
I add the qmlqlsink to my qml file as follows:
GstGLVideoItem 
            {
                id: idVideo0
                objectName: "videoItem0"
                x: 0
                y: 0
                width: parent.width / 2
                height: parent.height / 2
                Component.onCompleted: _AppMgr.vid0 = idVideo0
            }
            GstGLVideoItem 
            {
                id: idVideo1
                objectName: "videoItem1"
                x: parent.width / 2
                y: 0
                width: parent.width / 2
                height: parent.height / 2
                Component.onCompleted: _AppMgr.vid1 = idVideo1
            }
 
In C++ backend I wait till the vid0 and vid1 properties are set and then I start building the pipline.
Vid0 works as expected…. If I use the same pipeline with vid1 I get:
 
0:00:01.930173963  4088    cb23330 INFO               glcontext gstglcontext.c:1231:gst_gl_context_create_thread:<glcontextwgl0> Attempting to create opengl context. user chosen api(s) (any), compiled api support (opengl opengl3) display api (opengl)
0:00:01.941723030  4088    cb23330 INFO               glcontext gstglcontext.c:1242:gst_gl_context_create_thread:<glcontextwgl0> created context
0:00:01.941934098  4088    cb23330 INFO               glcontext gstglcontext.c:1258:gst_gl_context_create_thread:<glcontextwgl0> available GL APIs: opengl
0:00:01.959707209  4088    cb23330 INFO               glcontext gstglcontext.c:1071:_create_context_info:<glcontextwgl0> GL_VERSION: 4.5.0 - Build 22.20.16.4771
0:00:01.959846536  4088    cb23330 INFO               glcontext gstglcontext.c:1074:_create_context_info:<glcontextwgl0> GL_SHADING_LANGUAGE_VERSION: 4.50 - Build 22.20.16.4771
0:00:01.959894111  4088    cb23330 INFO               glcontext gstglcontext.c:1076:_create_context_info:<glcontextwgl0> GL_VENDOR: Intel
0:00:01.959931869  4088    cb23330 INFO               glcontext gstglcontext.c:1078:_create_context_info:<glcontextwgl0> GL_RENDERER: Intel(R) HD Graphics 530
……..
Error: Could not initialize window system
Comment 1 Matthew Waters (ystreet00) 2018-08-28 05:11:49 UTC
This is effectively an extension of the wglShareLists() problem outlined by https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/ext/qt/gstqtglutility.cc?id=ca67a460eed4247c551b97e37590a02f65121759#n229

With proper drivers advertising and correctly performing wglCreateContextAttribsARB() this doesn't happen.
Comment 2 GStreamer system administrator 2018-11-03 15:30:21 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/477.