Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: OSD plugin - the solution
Maxime GUILBOT wrote:
>
> 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
The "brutal" thing is to create a separate thread for this.
After all, as far as I understand you, all you want to do is to
display a special channel list. You shouldn't need to use a separate
thread for that. Couldn't you just use the OSD as it is right now
for the time being, and once I come up with a way to let a plugin
re-open the OSD you could use that feature.
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