Mailing List archive

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

[vdr] Re: Re : Nexus and remote plugin



Klaus Schmidinger wrote:
> 
> Oliver Endriss wrote:
> >
> > Cyrille Grange wrote:
> > > Finally, it works with vdr-1.1.30 but it's not able to launch
> > > learning process as 1.1.28 can do.
> > > 1.1.30 work fine when a complete and valid "remote.conf" exist.
> >
> > Ok, I checked learning with vdr-1.1.30 and vdr-1.1.31:
> > Learning works with vdr-1.1.30, but not with vdr-1.1.31!
> >
> > @Klaus:
> > Is seems that I have to create cRemotes instances in Initialize(),
> > not in Start(). Correct?
> 
> Yes. Sorry I didn't think about this when introducing Initialize().
> At that time it was all about cDevices...

Maybe I was a little premature with this statement.
Of course the cRemote can be created in Initialize(), but what
if it would depend on the presence of another plugin (maybe one that
implements the primary device)?

I guess I have put the call of the plugins' Start() functions too far
down in vdr.c. Maybe it should be done _before_ learning the keys.

Can you please try this patch:

--- vdr.c       2003/05/11 08:39:09     1.154
+++ vdr.c       2003/05/16 12:11:45
@@ -399,6 +399,11 @@
 
   Interface = new cInterface(SVDRPport);
 
+  // Start plugins:
+
+  if (!PluginManager.StartPlugins())
+     return 2;
+
   // Remote Controls:
 #if defined(REMOTE_RCU)
   new cRcuRemote("/dev/ttyS1");
@@ -443,11 +448,6 @@
      dsyslog("setting watchdog timer to %d seconds", WatchdogTimeout);
      alarm(WatchdogTimeout); // Initial watchdog timer start
      }
-
-  // Start plugins:
-
-  if (!PluginManager.StartPlugins())
-     return 2;
 
   // Main program loop:
 

and let me know if this is ok.

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
_______________________________________________________________


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



Home | Main Index | Thread Index