[Bug 706553] context creation is not thread safe

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Aug 22 05:20:36 PDT 2013


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

--- Comment #2 from Matthew Waters <ystreet00 at gmail.com> 2013-08-22 12:20:31 UTC ---
(In reply to comment #1)
> Well, this looks like it is simply because of the render_lock. It is not hold
> during quit() and the waiting, and also there's a small race between
> gst_gl_window_run() and quit(). Which leads to the above behaviour, run
> happening after quitting. run() should probably check if the window was quit
> already before starting the loop.

I have thought of two possible solutions:
1. A counter that counts the number of quit/run invocations have happened and
determining whether to run/quit based on that. Just an extension of the quit
flag idea.  However that might be a little too complex.
2. unlock the mutex as the first thing in the run loop.  Would require a loop
that 'remembers' functions while not running and an async send_message.

Ideally I'd like to move to GMainLoop for everything however Cocoa doesn't seem
too keen on integration (from looking at clutter, gdk and the Cocoa
documentation). Win32 looks pretty easy to do.

-- 
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