Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Plugin video error
On Wed, 22 Jan 2003, Sascha Volkenandt wrote:
>On Mittwoch, 22. Januar 2003 19:46 Jan Ekholm wrote:
>> I'm writing a small image viewer as a plugin, and it all goes pretty
>> smoothly, but I do get a message like this in syslog:
>>
>> ERROR: attempt to use cPlayer::PlayVideo() without attaching to a cDevice!
>>
>> Well, usually 100 of them or so. All does seem to work as well as it could
>> at this stage, but this message obviously means that something is wrong.
>> Is the only missing thing an AttachPlayer() ? My image gets shown on the
>> screen, albeit blocky and cropped, but that's a later problem.
>>
>> Any tips?
>
>Did you use a cControl-Derive to control your cPlayer? In "usual" plugin terms
>the player is attached automatically (I suppose) when your cControl-Class
>calls
>cControl(player = new cPlayer)
>in the Constructor. I say I suppose, because I never had to atatch a player
>manually.
Yes, I do that.
class ImageViewer : public cPlayer {
...
}
class SlideshowControl : public cControl {
...
}
SlideshowControl::SlideshowControl () :cControl (m_viewer=new ImageViewer()){
...
}
>The cControl must be launched (to gain control over vdr) via cControl::Launch
I do that too.
cOsdObject * cPluginSlideshowViewer::MainMenuAction () {
// create and launch the control
cControl::Launch (new SlideshowControl () );
return NULL;
}
This is with 1.1.20.
--
Om began to feel the acute depression that steals over every realist
in the presence of an optimist.
-- Terry Pratchett, Small Gods
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index