Mailing List archive

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

[vdr] Re: Patch Zapping-Feature



Klaus Schmidinger schrieb:
Mirko Guenther wrote:

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) {

I tried this, but I came into situations (although hard to reproduce)
where it didn't switch between two channels any more, but rather
switched only "between" the same channel.

What exactly is it that your patch is supposed to fix?

Somehow I'm getting the feeling that this feature is becomming
way too complex...

Klaus


Hmmmm... without this patch, I've the problem, that I have to wait for the timeout to came back to the channel, I've seen before zapping. When I not wait, I came to the previous channel as that channel, I've seen before zapping. This patch (should) solve this problem.

Mirko
--
this mail was send using 100% recycled electrons



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



Home | Main Index | Thread Index