[Bug 732661] gl-cocoa: crash when aborting too early

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jul 3 21:02:22 PDT 2014


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

--- Comment #6 from Julien Isorce <julien.isorce at gmail.com> 2014-07-03 14:50:56 UTC ---
I could keep g_timeout_add_full (interval=0). The important thing here is the
priority. And yes it just reduces the risk.
Another solution would be to not call it from "gst_gl_context_cocoa_class_init"
but doing it inside gst_gl_context_cocoa_new using a g_once_init_enter/leave.
And return NULL if NSApp init fails instead of a warning.

Indeed the crashed you got happened because ctrl-c trigger to skip the
g_timeout/idle callback which init the NSApp. But no matter the result it still
tried to create the NSWindow.

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