En/na Reinhard Nissl ha escrit:
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.
Well, juggling around the instructions (i.e., calling the cControl::Shutdown() after the Skins.Message or after the SetPrimaryDevice, having previously removed the call to cControl::Shutdown() in MakePrimaryDevice) sometimes it works, sometimes it doesn't, so it's most probably a timing issue. If so there's no easy way out. I can live with this problem, it seems ActualDevice it's only used by some plugins (e.g. femon).
Bye