Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Terminating plugins



Am Freitag, 17. Januar 2003 07:14 schrieb Jan Ekholm:
> Hi all,
>
> However, how is one supposed to terminate a plugin? All normal menus and
> funtionality seems to obey the "left" or "cancel" buttons, but my plugin
> doesn't seem to want to quit. The only way is the press "menu" twice.
> Pressing only once does nothing, and pressing twice brings up the normal
> toplevel menu, which seems to close my plugin. Is there maybe some
> extra method I need to override when using raw OSD? The sample "osddemo"
> doesn't have anything like that as far as I can see, but I haven't tested
> it either to see how it behaves. This is with vdr-1.1.20.

The cOsdObject-derived object that you return in your MainMenuAction() 
function receives all key presses (except for Menu, Power, Volume if I recall 
correctly) in its
virtual eOSState ProcessKey(eKeys Key)
For whatever key you like you can return osEnd which will terminate your OSD 
object.
Don't forget to delete in its destructor the cOsdBase you created with 
OpenRaw.



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index