How to display an OSD message from a thread?

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

 



Christian Wieninger wrote:
> I tried it with the new service interface. The thread calls a service of the 
> plugin passing the message. 

This doesn't switch the threads, so your service will be called from
inside your thread too. Calling one's own service interface has no
advantage over just calling any function directly.

> Is there any other way to display a message from a thread?

There is still the hard way to catch the display: Use
cRemote::CallPlugin() to call your own MainMenuAction and display the
message from there.
Disadvantages:
- Current OSD and menus will be closed in any case.
- Possible race conditions inside CallPlugin may cancel your
MainMenuAction call, this may be compensated by some timeout handling.

Cheers,

Udo



[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