calling MainMenuAction() from an other plugin

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

 



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!


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux