1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed replay progress display in case replay is paused while watching an ongoing recording; initial display comes up in one piece

This commit is contained in:
Klaus Schmidinger 2001-08-04 08:08:44 +02:00
parent bff17fb1d0
commit 614113cdcb
2 changed files with 9 additions and 6 deletions

View File

@ -616,4 +616,5 @@ Video Disk Recorder Revision History
for this suggestion). for this suggestion).
- Added support for replaying DVDs (thanks to Andreas Schultz). VDR now needs - Added support for replaying DVDs (thanks to Andreas Schultz). VDR now needs
the 'libdvdread' library to be installed. the 'libdvdread' library to be installed.
- Fixed replay progress display in case replay is paused while watching an
ongoing recording.

12
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.90 2001/08/03 14:18:08 kls Exp $ * $Id: menu.c 1.91 2001/08/04 08:08:44 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -2314,10 +2314,10 @@ bool cReplayControl::ShowProgress(bool Initial)
} }
if (Total != lastTotal) { if (Total != lastTotal) {
Interface->Write(-7, 2, IndexToHMSF(Total)); Interface->Write(-7, 2, IndexToHMSF(Total));
Interface->Flush(); if (!Initial)
lastTotal = Total; Interface->Flush();
} }
if (Current != lastCurrent) { if (Current != lastCurrent || Total != lastTotal) {
#ifdef DEBUG_OSD #ifdef DEBUG_OSD
int p = Width() * Current / Total; int p = Width() * Current / Total;
Interface->Fill(0, 1, p, 1, clrGreen); Interface->Fill(0, 1, p, 1, clrGreen);
@ -2325,12 +2325,14 @@ bool cReplayControl::ShowProgress(bool Initial)
#else #else
cProgressBar ProgressBar(Width() * dvbApi->CellWidth(), dvbApi->LineHeight(), Current, Total, marks); cProgressBar ProgressBar(Width() * dvbApi->CellWidth(), dvbApi->LineHeight(), Current, Total, marks);
Interface->SetBitmap(0, dvbApi->LineHeight(), ProgressBar); Interface->SetBitmap(0, dvbApi->LineHeight(), ProgressBar);
Interface->Flush(); if (!Initial)
Interface->Flush();
#endif #endif
Interface->Write(0, 2, IndexToHMSF(Current, displayFrames)); Interface->Write(0, 2, IndexToHMSF(Current, displayFrames));
Interface->Flush(); Interface->Flush();
lastCurrent = Current; lastCurrent = Current;
} }
lastTotal = Total;
return true; return true;
} }
return false; return false;