Mailing List archive

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

[vdr] Patch Zapping-Feature



I've a little patch for the Zapping-Feature Timeout.
Now you came bak to the channel, you've seen before you start zapping without wait for the timeout.


--
this mail was send using 100% recycled electrons
--- orig/vdr.c	2003-08-02 16:01:32.000000000 +0200
+++ change/vdr.c	2003-08-07 16:18:51.000000000 +0200
@@ -496,6 +496,9 @@
            if (!Menu)
               Menu = Temp = new cDisplayChannel(cDevice::CurrentChannel(), LastChannel > 0);
            LastChannel = cDevice::CurrentChannel();
+	   if(time(NULL) - LastChannelChanged >= ZAPTIMEOUT) {
+	    PreviousChannel=LastLastChannel;
+	    }//if
            LastChannelChanged = time(NULL);
            }
         if (LastLastChannel != LastChannel && time(NULL) - LastChannelChanged >= ZAPTIMEOUT) {

Home | Main Index | Thread Index