Duncan Webb wrote: > Dirk Meyer wrote: >> Duncan Webb wrote: >>> Gorka Olaizola wrote: >>>> On Fri, Nov 23, 2007 at 07:46:00PM +0100, Duncan Webb wrote: >>>>> By replacing the calls with timer, I've converted the upsoon plug-in for >>>>> kaa.notifier's timer calls and rpc calls. >>>>> >>>> I'm trying to update freevused plugin based on the upsoon changes >>>> but I don't understand what to do. I suppose I have to change the poll >>>> and eventhandler methods with the kaa.notifier Timer register method >>>> but I have two problems. >>>> >>>> It seems, based on the documentation, that Timer supports a resolution >>>> of seconds. It could be enough but it seems too much for input handling. >>> Timer start() takes a floating point number, so you can call start(0.1) >>> for 1/10 second. >> >> Besides Timer you can also use a SocketDispatcher that will wake up >> when something is happening on a socket without you polling. >> >>> I'm having a problem with events that are posted from with plug-ins, >>> such as the IDENTIFY_MEDIA from the rom_drives plug-in, it doesn't seem >>> to get posted, which means that the DVD or audio CD don't start playing. >>> >>> May be dischi can help, whith this one. >> >> Do you still use the Freevo event code or the notifier based copy? > > AFAICS it is the notifier based code, it is the stuff that you changed > for 1.7. > > The only thing a bit special about the rom_drives module is that it uses > a thread.
event.post ist thread-safe. > That does the return value from an event handler mean? The same as other notifier callbacks: False == remove. Dischi -- I pretend to work. They pretend to pay me.
pgpI7eZzk1oQM.pgp
Description: PGP signature
------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel