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 758337 - qtglwidget qtitem: missing opengl context initialization
qtglwidget qtitem: missing opengl context initialization
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal normal
: 1.6.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-19 13:32 UTC by Roman Nowicki
Modified: 2016-04-01 05:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
qtglwidget qtitem: proper initialization if scene is already initialized (1.00 KB, patch)
2015-11-19 13:32 UTC, Roman Nowicki
committed Details | Review
result of running with GST_DEBUG=qt*:5 (907 bytes, text/plain)
2015-11-19 13:34 UTC, Roman Nowicki
  Details
simple example (584 bytes, text/plain)
2015-11-19 13:35 UTC, Roman Nowicki
  Details

Description Roman Nowicki 2015-11-19 13:32:34 UTC
Created attachment 315883 [details] [review]
qtglwidget qtitem: proper initialization if scene is already initialized

When qtglwidget is created after main window initialization opengl context isn't initialized properly.

Example:
1. Setup timer witch trigger loding GstGLVideoItem in Loder element.


In result of creating qtglwidget following error is provided:
CRITICAL **: gst_gl_context_activate: assertion 'GST_GL_IS_CONTEXT (context)' failed

I'm attaching simple example, result of running with GST_DEBUG=qt*:5 and basic patch to resolve this problem.
Comment 1 Roman Nowicki 2015-11-19 13:34:10 UTC
Created attachment 315885 [details]
result of running with GST_DEBUG=qt*:5
Comment 2 Roman Nowicki 2015-11-19 13:35:05 UTC
Created attachment 315886 [details]
simple example
Comment 3 Matthew Waters (ystreet00) 2015-11-19 22:45:03 UTC
commit 27c94f337562e57fd93c8bfc769ddc150f6da22f
Author: Roman Nowicki <rnowicki@sims.pl>
Date:   Thu Nov 19 11:55:19 2015 +0100

    qml: proper initialization if scene is already initialized
    
    The scene graph can be initialized when the we receive window handle change
    notification and so we will not receive a scenegraph initialization
    notification.  Initialize ourself in this case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758337

and 1.6 462f38f735c43fd446d881d805e67ca3a44c724c
Comment 4 Yevhen 2016-04-01 05:31:36 UTC
Exact problem exists for 1.7.91 if app tries to play video just after QML initialization.
So need to add delay before changing pipeline state to PLAYING.
Comment 5 Matthew Waters (ystreet00) 2016-04-01 05:56:45 UTC
Please create a new bug with an example.