Mailing List archive

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

[vdr] Re: OSD plugin - the solution



Klaus Schmidinger wrote:

>Maxime GUILBOT wrote:
>
>>Hi Klaus and Andreas,
>>I found a solution to my problem.
>>I use cControl and do not use cPlayer. (so the screen stays on the channel)
>>
>>cOsdemoThread::cOsdemoThread():cControl(NULL) {
>>    Start();
>>}
>>
>>And then I can access to the OSD using :
>>
>>    sleep(1);
>>    if ((osd = cOsd::OpenRaw(0, 0)) == NULL)
>>        {
>>          cout << "OpenRaw failed" << endl;
>>         }
>>else {
>>           cout << "OpenRaw success" << endl;
>>           delete osd;
>>        }
>>
>>But sleep(1); is VERY important maybe to wait vdr to free the osd,
>>that's why I could not access the osd before !
>>
>>In the DVD player it works because (I think) there is always a little
>>time before the first osd drawing. ( dvd drive access)
>>So now, I can access to the OSD and react on keys !
>>
>
>Well, this may work for you, but it definitely isn't the way it is
>supposed to work. I'll see that I can come up with a way that a plugin
>can set up the OSD the way it wants to. Until then I suggest you use
>the OSD as it is set up, because the above workaround is pretty "brutal".
>
>Klaus
>
For you, what you qualify as "brutal" is to create a cControl without a 
cPlayer ? ( I agree with you but I seems to work)
Maxime






Home | Main Index | Thread Index