[vdr] calling MainMenuAction() from an other plugin

Patrick Fischer patrick_fischer at gmx.de
Tue Mar 28 13:02:01 CEST 2006


Uwe Hanke schrieb:

>
>for example, in your background-thread:
>
>// AutoOsd
>if (ShowMessage && !Skins.IsOpen() && !cOsd::IsOpen()) {
>   ShowMessage = false;
>   cRemote::CallPlugin("myShowMessage");
>   }
>
>
>BR, Uwe
>  
>
Thanx it works fine:

        int timeout = 1000; //10sec
        while ((Skins.IsOpen() || cOsd::IsOpen()) && timeout) {
            usleep(10000);
            timeout--;
        }
        if (!Skins.IsOpen() && !cOsd::IsOpen()) {
               cRemote::CallPlugin("myMessage");         
            result = true;
           }else{
            result = false;
           }

Now I can use the full osd!



More information about the vdr mailing list