Udo Richter wrote: > Klaus Schmidinger wrote: > >> The ability to "catch the main thread" will be implemented by the >> second attached patch (vdr-1.3.46-mainthreadhook.diff), so that no >> "dirty tricks" should be necessary. >> >> --- plugin.h 2005/08/27 16:13:17 1.10 >> +++ plugin.h 2006/04/17 09:18:16 >> @@ -39,6 +39,7 @@ >> virtual bool Start(void); >> virtual void Stop(void); >> virtual void Housekeeping(void); >> + virtual void MainThreadHook(void); >> > > > Nice thing to have, but while we're at it, what about a way to open the > OSD from there? That way we could get rid of the CallPlugin / > MainMenuAction hacks altogether. Just allow cOsdObject* as return type. > > Of course this wont solve the races between plugins. Only one can be > shown in one pass, the rest must be destroyed. Let's not get carried away ;-) This was a quick way of allowing a plugin to do something in the main thread context that otherwise couldn't be done. Now I want to wrap things up for the final approach to version 1.4. Klaus