Mailing List archive

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

[vdr] Re: OSD plugin - the solution



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
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________




Home | Main Index | Thread Index