GStreamer thread oddness

Posted on Thursday, 28 October 2010

I sometimes find myself in a place where there are a number of Icecast streams going out at once and I'm interested in finding better ways of monitoring these. It seems like a nice option would be a window showing a visualisation of each stream.

I quickly whipped up some python to do this, but it almost always locks up when I run it, but I'm not sure if I've done something fundementally wrong or if I've found a bug somewhere.

If you are a gstreamer expert, please take a look a this code and let me know what I should do next! If you know a gstreamer expert, please try and bribe them to read this post ;)


  1. try adding 'gobject.threads_init()' just after import gobject. It's needed to force some thread-safety-ness from a pygobject side.

  2. Edward: Outstanding, that seems to work! I stupidly assumed that would be covered by the gtk.gdk.threads_init()
    Thanks very much :D

  3. Hmm, I spoke to soon, I've expanded some other aspects of the script and now it's back to deadlocking :(