Hi,

I write an application which builds a selection frontend for various
multimedia datafiles like videos, mp3, etc. This application is based on
DirectFB which is compiled with --enable-multi. I at the point where I
want to watch a movie which I select from the list presented by my
application. To play the video I want to use the mplayer, since I have had
various problems to implement a Xine Videoprovider and mainly because the
mplayer dfbmga video out plugin has an really really excelent picture
quality. So here we go:

My application starts in CRTC2 Layer of the Matrox card using exclusive
layer access. After selecting the video a mplayer process is spawned to
play the movie using -vo dfbmga. I tried several techiques to launch
mplayer - namely a system() call, popen()/pclose() and even fork() with
waitpid() - all with the same result. Everything wents fine. The
application launches mplayer which takes over control of the CRTC2 layer
and plays the movie, BUT when it comes to the end or mplayer is closed,
everything hangs. There remain two mplayer threads out of the original - I
believe - five threads and mplayer freezes. Sometimes there are some
strange DirectFB messages like 'Cannot deallocate VT' or something like
that. The point is that my application never gets further executed since
mplayer hangs. Killing mplayer solves the problem, but leads to a 'Layer
already locked' message. What I also tried was to release the surface and
the layer of my application, so all required resources were available to
mplayer, and get them back after mplayer has been executed. But that
didn't work either. However, if I try mplayer with the -vo null driver
everything works fine. So it must be a DirectFB issue.

Am I right, that the only possible solution is to stop my application,
execute mplayer and then restart my application? That's some kind of a
really dirty hack which I would like to avoid. So I hope someone out there
has an idea how to solve this problem.

Thanks

Frank



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

Reply via email to