Mailing List archive

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

[vdr] Re: RE : Re: StillPicture in a plugin



Olivier Jacques wrote:
> 
> > Olivier Jacques wrote:
> > >
> > > Hello list,
> > >
> > > I'm trying to write my next plugin.
> > > But I don't succeed in displaying a still picture from within the
> > > plugin. I have been trying to do this:
> ...
> > > But this doesn't work, I get at compile time:
> > >   menu.c:187: no matching function for call to
> > >   `cDevice::DeviceStillPicture (unsigned char[100000], int &)'
> > >   make[1]: *** [menu.o] Error 1
> > >
> > > By digging in the ML archives, I saw that Jan Elkom and Daniel Sáez
> > > Domingo succeeded in doing something like that (and
> > probably Klaus :)
> > > )
> > >
> > > Could you help me?
> >
> > You can only do this from within a derived cPlayer class.
> >
> > Klaus
> 
> Ok then. What is the most flame-proof way of doing it (giving that I
> want to display both still pictures and use OSD): multiple inheritance
> (cPlayer and cOsd)?

You need a cPlayer derived class for the actual playing (or
still pictures) and a cControl derived class that controls the whole
show (and does the OSD access).

See the section "Players" in PLUGINS.html for more.

Klaus


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



Home | Main Index | Thread Index