[vdr] Repeatable vdr 1.3.35 crash at end of recording

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Fri Nov 4 14:51:01 CET 2005


Marko Mäkelä wrote:
> ...
> BTW, is there a reason why VDR discards the currently displayed menu
> at the end of a recording?

Not really, it just arose that way.

This should fix it:


--- vdr.c       2005/10/09 10:01:45     1.218
+++ vdr.c       2005/11/04 13:48:39
@@ -813,8 +813,14 @@
          if (Interact) {
             eOSState state = Interact->ProcessKey(key);
             if (state == osUnknown && Interact != cControl::Control()) {
-              if (ISMODELESSKEY(key) && cControl::Control())
+              if (ISMODELESSKEY(key) && cControl::Control()) {
                   state = cControl::Control()->ProcessKey(key);
+                 if (state == osEnd) {
+                    // let's not close a menu when replay ends:
+                    cControl::Shutdown();
+                    continue;
+                    }
+                 }
                else if (time(NULL) - LastActivity > MENUTIMEOUT)
                   state = osEnd;
                }


Klaus



More information about the vdr mailing list