Mailing List archive

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

[linux-dvb] Re: Wrong time in VDR



Johannes Schoeller wrote:
> 
> > > another suggestion:
> > > wouldn.t it be a good idea to sync the time
> > > only on one/two preferred channels? that
> > > would be great for people living in other
> > > timezones.
> >
> > The time sent in the DVB data stream is in GMT and thus
> > independent from any time zones.
> 
> i tried to do: "hwclock --systohw" but the problem
> didn.t change a lot. i set "hwclock --utc" an the
> problem was divided. ;) that means the time offset
> was divided. now 1 hour - instead of 2.
> 
> one thing that i realised: it seems to me, that VDR
> doesn.t change the systemtime (not hwclock).
> my "setup.conf" says "set system clock = 1", but
> when i start VDR the systemtime doesn.t change until
> i manually go to "setup" and leave the menu again.
> after 30s the time is correct.
> 
> that seems to be my problem now. maybe that doesn.t
> work automatically because i.m not logged in at all.
> (no "root" as discribed in the MANUAL"). i start
> everything automatically with scripts in /etc/rc.d/init.d
> 
> do you have a way to solve this?

There was a bug in the initialization of the cDvbApi objects.

In dvbapi.c, function cDvbApi::cDvbApi(), change the line 

    if (!NumDvbApis) // only the first one shall set the system time

into

    if (!dvbApi[0]) // only the first one shall set the system time

and it should work.

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 listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index