Hello guys, I'm implementing MPAV (MPlayer Audio Visualization, http://gsbarbieri.sytes.net/mpav/) but I found some issues:
- childapp.py: Sometimes poll() is called before the child __init__() is finished, so many times it breaks because there's no t1 or t2 attributes (isAlive()). I solved this declaring "ready=False" as class attribute and setting it to True at the end of __init__(). Then isAlive() must check if it's ready. It's the right solution? Patch: Index: src/childapp.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/childapp.py,v retrieving revision 1.49 diff -r1.49 childapp.py 132c132 < --- > ready = False 223c223,225 < --- > > self.ready = True > 246a249,250 > if not self.ready: # return true if constructor has not finished yet > return True 247a252 > - The second issue is with stop_osd. I need to stop the osd, since my app uses SDL and can display in framebuffer and dxr3. I'm using ChildApp2 and leave stop_osd=2, so it must stop the osd when OSD_STOP_WHEN_PLAYING=1 but instead of just stop the osd, it exits and leaves mplayer playing! What I should do? I'll commit my code later tonight, but first I want to be sure about childapp. Also, if someone is good with Threads, please take a look at MPAV source, try to optimize it and to find possible dead locks. Gustavo ______________________________________________________________________ Yahoo! GeoCities: 15MB de espa�o gr�tis para criar seu web site! http://br.geocities.yahoo.com/ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
