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

The function cTimers::SetEvents() now immediately returns if there is some user input

This commit is contained in:
Klaus Schmidinger 2004-07-17 12:48:14 +02:00
parent c99e16ec41
commit 2dfe413351
2 changed files with 6 additions and 1 deletions

View File

@ -2941,3 +2941,5 @@ Video Disk Recorder Revision History
- Removed all error messages from cRecordings::ScanVideoDir() and just skipping - Removed all error messages from cRecordings::ScanVideoDir() and just skipping
entries that cause errors in order to avoid failure in case of things like entries that cause errors in order to avoid failure in case of things like
broken links etc. broken links etc.
- The function cTimers::SetEvents() now immediately returns if there is some user
input.

View File

@ -4,13 +4,14 @@
* 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: timers.c 1.12 2004/03/14 13:27:57 kls Exp $ * $Id: timers.c 1.13 2004/07/17 12:46:27 kls Exp $
*/ */
#include "timers.h" #include "timers.h"
#include <ctype.h> #include <ctype.h>
#include "channels.h" #include "channels.h"
#include "i18n.h" #include "i18n.h"
#include "remote.h"
// IMPORTANT NOTE: in the 'sscanf()' calls there is a blank after the '%d' // IMPORTANT NOTE: in the 'sscanf()' calls there is a blank after the '%d'
// format characters in order to allow any number of blanks after a numeric // format characters in order to allow any number of blanks after a numeric
@ -516,6 +517,8 @@ void cTimers::SetEvents(void)
//XXX what if the Schedule doesn't have any VPS??? //XXX what if the Schedule doesn't have any VPS???
int Match = tmNone; int Match = tmNone;
for (const cEvent *e = Schedule->Events()->First(); e; e = Schedule->Events()->Next(e)) { for (const cEvent *e = Schedule->Events()->First(); e; e = Schedule->Events()->Next(e)) {
if (cRemote::HasKeys())
return; // react immediately on user input
int m = ti->Matches(e); int m = ti->Matches(e);
if (m > Match) { if (m > Match) {
Match = m; Match = m;