From ba70704694e879246856d6bb98be3e3d01ab0156 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 24 Apr 2000 15:32:11 +0200 Subject: Improved replay progress display --- dvbapi.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dvbapi.c') diff --git a/dvbapi.c b/dvbapi.c index a9544ffa..719437d4 100644 --- a/dvbapi.c +++ b/dvbapi.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.c 1.7 2000/04/24 13:27:38 kls Exp $ + * $Id: dvbapi.c 1.8 2000/04/24 15:30:35 kls Exp $ */ #include "dvbapi.h" @@ -1150,7 +1150,7 @@ void cDvbApi::Text(int x, int y, const char *s, eDvbColor colorFg, eDvbColor col #endif } -void cDvbApi::ShowProgress(bool Initial) +bool cDvbApi::ShowProgress(bool Initial) { int Current, Total; @@ -1191,7 +1191,9 @@ void cDvbApi::ShowProgress(bool Initial) } #endif Text(0, 2, cIndexFile::Str(Current)); + return true; } + return false; } bool cDvbApi::SetChannel(int FrequencyMHz, char Polarization, int Diseqc, int Srate, int Vpid, int Apid, int Ca, int Pnr) @@ -1538,6 +1540,7 @@ bool cDvbApi::GetIndex(int *Current, int *Total) { if (pidReplay) { int total; + purge(fromReplay); writechar(toReplay, dvbGetIndex); if (readint(fromReplay, *Current) && readint(fromReplay, total)) { if (Total) @@ -1545,7 +1548,8 @@ bool cDvbApi::GetIndex(int *Current, int *Total) } else *Current = -1; + return *Current >= 0; } - return *Current >= 0; + return false; } -- cgit v1.2.3