Re: [Freevo-devel] using nonstandard norm in freevo

2007-04-02 Thread Pascal Schirrmann
Koval Valery a écrit : > May be I'm not fully describe my patch or I don't understand you (or I > don't have this example early :) ). > > Please describe me how can I switch between 2 standards - PAL and > SECAM-DK (not SECAM 0x7F) for 2 channels? The channels I watch from > cable TV (in my

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Mathias Weber
Mathias Weber wrote: > Dirk Meyer wrote: >> Dirk Meyer wrote: >>> kaa.popcorn is no Application, the video and audio player _have_ a >>> popcorn instance but do not inherit from it. So application resume is >>> only needed for ressource handling. So I vote for suspend and resume >>> without prefix.

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Mathias Weber
Dirk Meyer wrote: > Dirk Meyer wrote: >> kaa.popcorn is no Application, the video and audio player _have_ a >> popcorn instance but do not inherit from it. So application resume is >> only needed for ressource handling. So I vote for suspend and resume >> without prefix. But we need an extra functi

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Dirk Meyer
Dirk Meyer wrote: > kaa.popcorn is no Application, the video and audio player _have_ a > popcorn instance but do not inherit from it. So application resume is > only needed for ressource handling. So I vote for suspend and resume > without prefix. But we need an extra function can_suspend to check

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Dirk Meyer
Mathias Weber wrote: > Dirk Meyer wrote: >> Mathias Weber wrote: >>> I think suspend would be good for pause the plugin/application but >>> resume is still to generic. And i can't think of something better then >>> resume i looked trough dict.leo but i haven't found something that fits >>> for m

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Mathias Weber
Dirk Meyer wrote: > Mathias Weber wrote: >> I think suspend would be good for pause the plugin/application but >> resume is still to generic. And i can't think of something better then >> resume i looked trough dict.leo but i haven't found something that fits >> for me. >> What would you think o

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Mathias Weber
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.

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Dirk Meyer
Mathias Weber wrote: > I think suspend would be good for pause the plugin/application but > resume is still to generic. And i can't think of something better then > resume i looked trough dict.leo but i haven't found something that fits > for me. > What would you think of detach and reattach? S

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Dirk Meyer
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 do

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Mathias Weber
Hans Meine wrote: > Am Montag, 02. April 2007 17:59:03 schrieb Dirk Meyer: >> Right, that is why I used plugin_pause and plugin_resume. But you >> could not call this functions on applications. So suspend could be an >> idea for a name, but what about resume? Is it pause/resume for >> playback or s

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Hans Meine
Am Montag, 02. April 2007 17:59:03 schrieb Dirk Meyer: > Right, that is why I used plugin_pause and plugin_resume. But you > could not call this functions on applications. So suspend could be an > idea for a name, but what about resume? Is it pause/resume for > playback or suspend/resume for ressou

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Mathias Weber
Dirk Meyer wrote: > Hans Meine wrote: >> Am Montag, 02. April 2007 17:49:27 schrieb Mathias Weber: >>> I see that you already do start the functions with the names. but >>> actually this are methods in usually you don't do this with methods this >>> is something done in c because there where no enc

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Dirk Meyer
Hans Meine wrote: > Am Montag, 02. April 2007 17:49:27 schrieb Mathias Weber: >> I see that you already do start the functions with the names. but >> actually this are methods in usually you don't do this with methods this >> is something done in c because there where no encapsulation. > > I disagr

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Hans Meine
Am Montag, 02. April 2007 17:49:27 schrieb Mathias Weber: > I see that you already do start the functions with the names. but > actually this are methods in usually you don't do this with methods this > is something done in c because there where no encapsulation. I disagree; "pause" is simply too

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Dirk Meyer
Mathias Weber wrote: > Dirk Meyer wrote: >> >> OK. But do not include it into plugin.py and make an keep it an extra >> file. > > ok you are right. > >> ... The >> functions isApplication and isPlugin are not really needed, you could >> ask isinstance. > > I think isinstance is fine. So I will dro

Re: [Freevo-devel] Freevo 2.0 Games Plugin

2007-04-02 Thread Mathias Weber
Dirk Meyer wrote: > > OK. But do not include it into plugin.py and make an keep it an extra > file. ok you are right. > ... The > functions isApplication and isPlugin are not really needed, you could > ask isinstance. I think isinstance is fine. So I will drop the resource_type. > Another idea