Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: StillPicture in a plugin
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:
uchar tempbuf[100000];
int n;
FILE *f;
f=fopen("test.mpg","r");
if (f!=NULL) {
n=fread(tempbuf,1,sizeof(tempbuf),f);
fclose(f);
if (n > 0) {
cDevice::PrimaryDevice()->DeviceStillPicture(tempbuf, n);
} else {
esyslog("Error when displaying background picture");
}
} else {
esyslog("Can't open test.mpg file");
}
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
That means that the cDevice class has no method DeviceStillPicture(...).
Looking at device.h you can see that there is a method
StillPicture(...). Maybe you want to use this one.
In the file player.h there is a method cPlayer::DeviceStillPicture(...),
which is a forwarder function to device->StillPicture(...).
Andreas
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index