Hi,

Selwyn Tang <[EMAIL PROTECTED]> writes:

> I built a gtk+ on dfb app which displays its contents on the primary
> layer, and I hacked mplayer to display video on an overlay layer of my
> cle266. The directfb was compiled with multi-app core. I can
> successfully run the two simultaneously in two different processes (I
> run mplayer from the console and run the gtk+ app from a telnet'd session).
> 
> But then I want to combine to two into one program. I fork a child and
> call mplayer by execlp while the parent doing the gtk+ stuff. In this
> way, mplayer just wipes a part of my screen, where the gtk+ stuff is
> running, but doesn't show any video. I can hear the audio, meaning that
> it is actually playing the media file.
> 
> So, am I wrong in forking and execlp'ing this way? Does anyone know how
> to invoke mplayer from another dfb app? Or am I forced to run the two
> separately, like using a shell script?

Are you using exit() or _exit() when forking? You should be using the
latter. This is covered in the GTK+ FAQ and I guess it applies to the
DirectFB port as well.


Sven



-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to