[gst-devel] Discoverer (gst-python) crashes
Jan Schmidt
thaytan at noraisin.net
Fri Jun 22 10:30:33 CEST 2007
Dominique Würtz wrote:
> Hi!
>
> I recently played around with the Discoverer which ships with
> gst-python, but, while the actual discovery succeeds, my test app often
> crashes when exiting.
>
Your problem is here:
> import pygst
> pygst.require("0.10")
> from discoverer import Discoverer
> import gobject
>
> def on_discovered(disc, success):
> print "discovered! rate =", disc.audiorate
>
> disc = Discoverer("test.wav")
> disc.connect("discovered", on_discovered)
> disc.discover()
>
> mainloop = gobject.MainLoop()
> mainloop.run()
>
> IIRC when run with Python 2.4, it gave me mostly
>
> Fatal Python error: GC object already tracked
> Aborted (core dumped)
>
Before you import any GObject library (like GStreamer) that's going to
use threads, you need:
import gobject; gobject.threads_init()
Cheers,
Jan.
More information about the gstreamer-devel
mailing list