[Bug 731525] multiple glimagesink elements aborts due to no XInitThreads.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jun 13 08:14:40 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731525
  GStreamer | gst-plugins-bad | git

--- Comment #9 from Julien Isorce <julien.isorce at gmail.com> 2014-06-13 15:14:32 UTC ---
Also Nicolas just told me that a FBO could internally make some call to X. So
that definitely breaks my solution as it was only for creation/destruction.

I just had a look at Qt and they mention it too "Also, under X11, it's
necessary to set the Qt::AA_X11InitThreads application attribute"
(http://qt-project.org/doc/qt-4.8/qglframebufferobject.html). This remark
disappears in qt-5 doc
(http://qt-project.org/doc/qt-5/qopenglframebufferobject.html) and looking at
the source code it's not clear when it's called and would require to actually
test and break on XInitThreads.

Any chance to fail properly if the app did not call XInitThreads ? Maybe
re-calling XInitThreads in gstgl when using an external x11 connection, if it
returns non-zero then it could mean it has been called before, otherwise we
fail anyway. Nothing is mentioned about the case:  the user call XInitThreads
before any X call and then re-call XInitThreads later.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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