[Bug 761003] New: Error getting OpenGL context when qml item when scene graph is initialized.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jan 22 12:47:01 PST 2016


https://bugzilla.gnome.org/show_bug.cgi?id=761003

            Bug ID: 761003
           Summary: Error getting OpenGL context when qml item when scene
                    graph is initialized.
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: serge.borovkov at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

I am getting this error gst_gl_context_activate: assertion 'GST_GL_IS_CONTEXT'.
>From this code it looks like for the case when scene graph is already
initialized that onSceneGraphInitialized() is called from the wrong thread.
When the condition is false it connects to signal which is emitted from render
thread and ends up executing on that thread. But when it's initialized we are
getting executed from the main thread.

void
QtGLVideoItem::handleWindowChanged(QQuickWindow *win)
{
  if (win) {
    if (win->isSceneGraphInitialized())
      onSceneGraphInitialized();
    else
      connect(win, SIGNAL(sceneGraphInitialized()), this,
SLOT(onSceneGraphInitialized()), Qt::DirectConnection);

    connect(win, SIGNAL(sceneGraphInvalidated()), this,
SLOT(onSceneGraphInvalidated()), Qt::DirectConnection);
  } else {
    this->priv->qt_context = NULL;
  }
}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list