Hi, Many Maemo applications are actually multi-threaded, since async operations within GnomeVFS use threads internally.
Anyway, using GStreamer in control panel applet sounds dangerous. This is because gstreamer cannot be unloaded cleanly (when execute-function returns, your module is unloaded and gstreamer is unloaded as well). Basically only very simple libraries (such that don't modify the main process' memory) can be unloaded. Perhaps you can implement your applet as a separate process and the execute function of the applet just launches the child and waits it to finish? -Markku- Brandt, Todd E wrote: > Hi, I having a problem with hildon-control-panel and was wondering if > someone could help me out? > > Basically, I have a sound applet that sets up the audio devices for the > system, and it's designed as a library which is pulled up by the > controlpanel process. It requires gstreamer to work, and the gstreamer > documentation tells me that I have to either call gst_init or > g_threat_init() *before* any other glib functions are called. But by the > time my execute function is called, it's too late. > > Is there a way to initialize gstreamer from a hildon cp applet? Or do I > have to patch hildon-control-panel to call gst_init in its main > function? > _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers