Mailing List archive

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

[vdr] Re: can the osd be accessed by a separate pthread?



Marcel Wiesweg wrote:

Am Sonntag, 22. Juni 2003 18:27 schrieb Gunnar Roth:

Clemens Kirchgatterer wrote:

this is no problem. i tell you what really happens:

1. vdr starts the games plugin.
2. the plugin spawns its own "main thread".
3. the main thread opens the raw osd.

I know...


from now on this is the only instance, that does access the osd, so no
problem.

Is this really true? what about a status message appearing because of
cutting process ended?
or a message iniated by a call to svdrsend.pl? my vbox plugin also show
a status message if new calls are available.

As you can easily find outby testing, in this case the cOsdObject returned by MainMenuAction is deleted (it should close the OsdBase then), and the message is displayed.
So this will interrupt your newsticker.

Of course, this is the way it should be. the messages are important and should interrupt anything else.
i can later on restart the ticker.

Is there a way to find out, when the status message disappears? can cStatus be used to monitor this?

if not, how can a plugin draw an animated osd graphic smootly? i doubt
that doing the drawing on kNone gives a smooth result.

i guess kNone just comes to unregulary to use this.

This maybe the case indeed.


furthermore this plugin, doesnt wait until the thread really ends, but
simply the the running flag to falls, on BACK-KEY press and returns

from PROCESS key.

it doubt that this is a correct behaviour. im all new to pthreads on
linux so i cannt estimate what can be done and what not.

You generally do running = false;
Cancel(1);
so that when the thread does not end within one second, it will be killed the hard way.

I know this is the way it is done in the mp3 player for example.
But the tetris plugin doesnt use cThread, but plain pthread calls.
as i said, i doubt that the behaviour was correct, but wasnt sure about it.


regards,
gunnar





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



Home | Main Index | Thread Index