Quoting Frank Enderle: > 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.
That really sounds like a bug in the new layer context code. I assume you are using the CVS version. Otherwise it wouldn't be possible for mplayer to enter exclusive access while your application has exclusive access. The new code can switch between the shared context and any number of exclusive contexts. Each context has its own configuration, surface, stack etc. Do you have a debug enabled build? > 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. No, this is definitely not the supposed way. Both application can operate concurrently. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-users" as subject.
