[gstreamer-bugs] [Bug 147883] - [PATCH] ximagesink/xvimagesink do not allow for a way to backtrace on X errors

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Tue Jul 20 07:25:21 PDT 2004


http://bugzilla.gnome.org/show_bug.cgi?id=147883
GStreamer | gst-plugins | Ver: 0.8.3





------- Additional Comments From ds at schleef.org  2004-07-20 10:25 -------
I already know how XSetErrorHandler() works.  If you set an error handler, you
will steal errors from gdk.

You can attempt to work around it; XSetErrorHandler() will return the old error
handler, and you can call that if a particular error is not for your display,
but this is a problem a) if ximagesink is initialized before gdk (because gdk
will simply complain and abort instead of calling the ximagesink error handler)
or b) if you have multiple ximagesinks, and attempt to free them in a different
order than allocated.

It's not too bad if one sets an error handler, runs some operations, calls
XSync(), and then sets the old error handler.  But having an error handler set
all the time should be reserved for gdk, since gdk really needs it.
It's a problem in Xlib.  It sucks, I know.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.




More information about the Gstreamer-bugs mailing list