Mailing List archive

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

[vdr] Re: VDR Bug: Question on CAM behavior



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 28. Mai 2003 21:13 schrieben Sie:
> This is why I said it's a priority problem. VDR should first make
> sure the CAM is ready to decrypt before launching any kind of
> recording action (even if this means the timer should have
> already started as would.be the case after a Em-Exit & Restart)

The same problem occours here, but ive made a workaround for me. It could 
possible help you. This patch deactivates the initiation of a timer for 30 
seconds after restart of vdr.

Bye

- -- 
- ------------------------
Currently used Version: GnuPG V1.2.2
PGP-Key: http://www.afisys.net/keys/andreas.pub.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+1RA7utDvSyBZadQRAo5sAJ4sIiMwhnu2isQqhlDDWEYznkhksACgg231
qfuuCqwM5NFH/6X5qGi5Cgs=
=LbnV
-----END PGP SIGNATURE-----
diff -Nru vdr-1.1.33/vdr.c vdr-1.1.33-p/vdr.c
--- vdr-1.1.33/vdr.c	2003-05-24 17:17:38.000000000 +0200
+++ vdr-1.1.33-p/vdr.c	2003-05-28 21:26:03.000000000 +0200
@@ -87,6 +89,7 @@
   // Initiate locale:
 
   setlocale(LC_ALL, "");
+  time_t StartTime = time(NULL);
 
   // Command line options:
 
@@ -501,7 +542,7 @@
            time_t Now = time(NULL); // must do both following calls with the exact same time!
            cRecordControls::Process(Now);
            cTimer *Timer = Timers.GetMatch(Now);
-           if (Timer) {
+           if ( Timer && (time(NULL) - StartTime > 30)) {
               if (!cRecordControls::Start(Timer))
                  Timer->SetPending(true);
               else

Home | Main Index | Thread Index