Mailing List archive

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

[vdr] ShowReplayMode bug (was Re: Video Disk Recorder version 0.97)



On 23 Oct 2001 Sergei Haller <Sergei.Haller@math.uni-giessen.de> wrote:

> there must be something wrong with it. e.g. if you are replaying without

Unfortunaly true. In some cases the small OSD is left open and
disturbs further display. I think this should cure this (there
may be better ways to fix this):


diff -uN VDR/menu.c VDR-0.97-orig/menu.c
--- VDR/menu.c	Tue Oct 23 18:15:23 2001
+++ VDR-0.97-orig/menu.c	Sun Oct 21 16:28:14 2001
@@ -2364,7 +2364,7 @@
 
 cReplayControl::~cReplayControl()
 {
-  Hide(true);
+  Hide();
   dvbApi->StopReplay();
 }
 
@@ -2413,12 +2413,12 @@
      }
 }
 
-void cReplayControl::Hide(bool noShowMode)
+void cReplayControl::Hide(void)
 {
   if (visible) {
      Interface->Close();
      needsFastResponse = visible = false;
-     if (!noShowMode && !modeOnly)
+     if (!modeOnly)
         ShowMode();
      else
         modeOnly = false;
@@ -2664,7 +2664,7 @@
 
 void cReplayControl::EditCut(void)
 {
-  Hide(true);
+  Hide();
   if (!cVideoCutter::Active()) {
      if (!cVideoCutter::Start(fileName))
         Interface->Error(tr("Can't start editing process!"));
@@ -2727,7 +2727,7 @@
     case kGreen:   dvbApi->SkipSeconds(-60); break;
     case kYellow|k_Repeat:
     case kYellow:  dvbApi->SkipSeconds( 60); break;
-    case kBlue:    Hide(true);
+    case kBlue:    Hide();
                    dvbApi->StopReplay();
                    return osEnd;
     default: {
@@ -2748,7 +2748,7 @@
           displayFrames = DisplayedFrames;
           switch (Key) {
             // Menu control:
-            case kMenu:    Hide(true); return osMenu; // allow direct switching to menu
+            case kMenu:    Hide(); return osMenu; // allow direct switching to menu
             case kOk:      if (visible && !modeOnly)
                               Hide();
                            else
diff -uN VDR/menu.h VDR-0.97-orig/menu.h
--- VDR/menu.h	Tue Oct 23 18:12:53 2001
+++ VDR-0.97-orig/menu.h	Sun Oct 21 16:26:01 2001
@@ -110,7 +110,7 @@
   void TimeSearchProcess(eKeys Key);
   void TimeSearch(void);
   void Show(int Seconds = 0);
-  void Hide(bool noShowMode = false);
+  void Hide(void);
   static char *fileName;
 #ifdef DVDSUPPORT
   static cDVD *dvd;//XXX member really necessary???

-- 
Stefan Huelswitt
huels@iname.com  | http://home.pages.de/~nathan



Home | Main Index | Thread Index