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

Suppressing replay progress display when replaying a DVD

This commit is contained in:
Klaus Schmidinger 2001-08-07 16:39:18 +02:00
parent a57bcf4240
commit 92d0bb8fcc
2 changed files with 7 additions and 4 deletions

View File

@ -625,3 +625,4 @@ Video Disk Recorder Revision History
2001-08-07: Version 0.91
- Fixed displaying colored button texts that are too long.
- Suppressing replay progress display when replaying a DVD.

10
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: menu.c 1.95 2001/08/05 16:09:41 kls Exp $
* $Id: menu.c 1.96 2001/08/07 16:36:37 kls Exp $
*/
#include "menu.h"
@ -2305,10 +2305,8 @@ void cReplayControl::ClearLastReplayed(const char *FileName)
void cReplayControl::Show(int Seconds)
{
if (!visible) {
Interface->Open(Setup.OSDwidth, -3);
needsFastResponse = visible = true;
shown = ShowProgress(true);
if (Seconds > 0)
if (shown && Seconds > 0)
timeoutShow = time(NULL) + Seconds;
}
}
@ -2326,6 +2324,10 @@ bool cReplayControl::ShowProgress(bool Initial)
int Current, Total;
if (dvbApi->GetIndex(Current, Total) && Total > 0) {
if (!visible) {
Interface->Open(Setup.OSDwidth, -3);
needsFastResponse = visible = true;
}
if (Initial) {
Interface->Clear();
if (title)