[gst-devel] [gst-cvs] ensonic gst-plugins-good: gst-plugins-good/ gst-plugins-good/tests/examples/spectrum/

Sebastian Dröge sebastian.droege at collabora.co.uk
Tue Jan 27 20:36:50 CET 2009


Am Dienstag, den 27.01.2009, 20:34 +0100 schrieb Sebastian Dröge:
> Am Sonntag, den 10.08.2008, 12:35 -0700 schrieb
> ensonic at kemper.freedesktop.org:
> > CVS Root:       /cvs/gstreamer
> > Module:         gst-plugins-good
> > Changes by:     ensonic
> > Date:           Sun Aug 10 2008  19:35:19 UTC
> > 
> > Log message:
> > 	* tests/examples/spectrum/demo-audiotest.c:
> > 	* tests/examples/spectrum/demo-osssrc.c:
> > 	  Demo how to draw analyzer results synced to the clock.
> 
> This is not a good idea as the drawing callback will be called
> from some random thread. On X11 you can put all the drawing
> code inside the Gdk lock but on Windows the application
> will simply die as it's simply not allowed there to do GUI
> stuff from outside the thread that runs the main loop.
> 
> I'll add the Gdk locking for now to make it work on X11 at
> least but maybe this change should be reverted :)
> 
> (On X11 it will sometimes kill the application with assertion
> failures inside libX11)

Actually taking the Gdk lock (gdk_threads_{enter,leave}()) won't
help much here:

(demo-audiotest:11717): Gdk-WARNING **: /tmp/buildd/gtk
+2.0-2.14.7/gdk/gdkwindow.c:1200: no preceding call to
gdk_window_begin_paint_region(), see documentation
demo-audiotest: ../../src/xcb_lock.c:33: _XCBUnlockDisplay: Zusicherung
»xcb_get_request_sent(dpy->xcb->connection) == dpy->request« nicht
erfüllt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090127/1b7091ee/attachment.pgp>


More information about the gstreamer-devel mailing list