Hi, Luca Olivetti wrote: >>>So the revised patch (see attachment) should work now as expected, isn't >>>it? >> >>I'm really puzzled (since now the plugin is doing exactly the same as >>vdr) but it doesn't :-( > > Could it be that OnClientConnect is asyncrhonous wrt the main vdr thread > and SetPrimaryDevice should be called only from the main thread (so that > if it works or not is basically random?). Well yes, this could be a problem. OnClientConnect() is driven by an own thread in xineLib.c. Bye. -- Dipl.-Inform. (FH) Reinhard Nissl mailto:rnissl@xxxxxx