problem with VDR 1.3.39

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

 



Peter Juszack wrote:
> Hi list,
> 
>    after updating to 1.3.39 vdr did react on keys any more. With 1.3.38 
> everything worked fine.
> 
> in syslog I discovered the following
> 
> Jan 16 13:47:32 fontina vdr[4440]: ERROR: unknown plugin 'snapshot'
> Jan 16 13:48:03 fontina last message repeated 341237 times
> Jan 16 13:48:05 fontina last message repeated 33642 times
> 
> after some searching I discovered that the snapshot plugin remained in 
> the keymacros.conf allthough I
> have uninstalled it.
> After I tidied up the keymacros.conf everything is fine.

Here's a fix:

--- keys.c      2006/01/05 15:39:26     1.10
+++ keys.c      2006/01/16 17:01:25
@@ -250,9 +250,11 @@

  const cKeyMacro *cKeyMacros::Get(eKeys Key)
  {
-  for (cKeyMacro *k = First(); k; k = Next(k)) {
-      if (*k->Macro() == Key)
-         return k;
-      }
+  if (Key != kNone) {
+     for (cKeyMacro *k = First(); k; k = Next(k)) {
+         if (*k->Macro() == Key)
+            return k;
+         }
+     }
    return NULL;
  }
--- vdr.c       2006/01/15 16:23:21     1.240
+++ vdr.c       2006/01/16 17:05:49
@@ -985,7 +985,7 @@
             }
          else {
             // Key functions in "normal" viewing mode:
-           if (KeyMacros.Get(key)) {
+           if (key != kNone && KeyMacros.Get(key)) {
                cRemote::PutMacro(key);
                key = kNone;
                }


Actually either one of these changes will do, but it's certainly not
a bad idea to make cKeyMacros::Get() "kNone-safe" as well.

Klaus


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux