[maemo-developers] using gstreamer in a hildon control panel applet
From: Markku Vire markku.vire at movial.fiDate: Fri Oct 5 11:24:11 EEST 2007
- Previous message: using gstreamer in a hildon control panel applet
- Next message: Debugging the browser
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, For some reason you seem to get wrong GTK+ theme in the spawned process. This is likely some kind of environment variable issue. Are you passing custom/somehow modified environment to the child? You can try to launch the child through run-standalone.sh script and check if it makes any difference. -Markku- Brandt, Todd E wrote: > How would I ensure that any dialogs that I spawn in the child process > take on the hildon-desktop settings though? I already have two control > panel shortcuts that launch separate processes but both spawn dialogs > with different colors, fonts, and sizes than they would if they were > spawned in the library. > > -----Original Message----- > From: Markku Vire [mailto:markku.vire at movial.fi] > Sent: Wednesday, October 03, 2007 12:44 AM > To: Brandt, Todd E > Cc: maemo-developers at maemo.org > Subject: Re: using gstreamer in a hildon control panel applet > > > 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? >>
- Previous message: using gstreamer in a hildon control panel applet
- Next message: Debugging the browser
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]