[vdr] calling MainMenuAction() from an other plugin
udo_richter at gmx.de
Mon Apr 17 16:43:12 CEST 2006
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.
More information about the vdr