Mailing List archive

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

[vdr] Re: cReceivers in plugins



On Fri, 9 May 2003, Klaus Schmidinger wrote:

>Jan Ekholm wrote:
>> 
>> ...
>> What can be done to make a plugin start after the privary device is
>> initialized? Activating the plugin later from the menu is a kludge (that
>> would work, of course), and makes it harder to test (can't really do it
>> over ssh, need access to the remote control and TV, which means sneakernet
>> traffic).
>
>This is kind of a "chicken & egg" problem, since the primary device might
>be implemented through a plugin itself. I actually wonder why the line
>
>  if ( cDevice::PrimaryDevice()->AttachReceiver ( m_receiver )) {
>
>doesn't crash, since the primary device pointer should be NULL at that time.

It's a static method, and it accesses no member variables during the code
path it takes in this case. Would it touch a member it would crash.


-- 
  In the beginning the Universe was created. This has made a lot of people
   very angry and been widely regarded as a bad move. 
                                                        -- Douglas Adams



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



Home | Main Index | Thread Index