Dirk Meyer wrote: > Mathias Weber wrote: >> list = self.get_resources('audio') >> >> answer = list[0][0].resource_suspend() > > get_resources should be atomic. So you should try to get all > ressources you need and get a dict as return with the once that failed > without reserving any ressources. This is like it is now and I don't > see why we need to change it. See video player how to pause audio if > needed. > >> list[0][0].resource_resume() > > I don't see a reason why we need to return a list. Only one app/plugin > can hold a ressource. If you pause/suspend one, make sure you resume > it later. No need to keep track of a list. >
I'm sorry this is exactly what i meant but, i wrote i some kind in a obfuscated way. Mathias ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel