[gstreamer-bugs] [Bug 607513] input-selector segfaults in g_object_notify()

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jan 19 18:22:22 PST 2010


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

--- Comment #1 from Kipp <kcannon at ligo.caltech.edu> 2010-01-20 02:22:17 UTC ---
Created an attachment (id=151804)
 View: https://bugzilla.gnome.org/attachment.cgi?id=151804
 Review: https://bugzilla.gnome.org/review?bug=607513&attachment=151804

protect g_object_notify() calls with an existing mutex

I haven't studied the problem carefully, so I don't know what happens if a
handler for the notify signal tries to invoke a method on the input-selector
instance given the mutex being held with g_object_notify() is called. 
Hopefully it doesn't lock up.

I'm sure the non-thread-safety of g_object_notify() is a big deal, so maybe
there's a proper "standard" solution to this like some kind of global glib
mutex or something.

Anyway, this patch stops the example script stop segfaulting.

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