diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-08 11:44:45 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-08 11:44:45 +0200 |
commit | 0c8cc01b1a29d7a7647562ab7be58b0044a9dcae (patch) | |
tree | 4ac3c15d0928ea9d20377f4041ed7059fb72c218 /config.c | |
parent | 3b6782a774510608efcca20bdd703c83151e85e8 (diff) | |
download | vdr-0c8cc01b1a29d7a7647562ab7be58b0044a9dcae.tar.gz vdr-0c8cc01b1a29d7a7647562ab7be58b0044a9dcae.tar.bz2 |
Error message if Transfer Mode can't be started
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.65 2001/09/03 16:01:46 kls Exp $ + * $Id: config.c 1.66 2001/09/08 11:41:12 kls Exp $ */ #include "config.h" @@ -303,14 +303,19 @@ bool cChannel::Switch(cDvbApi *DvbApi, bool Log) isyslog(LOG_INFO, "switching to channel %d", number); } for (int i = 3; i--;) { - if (DvbApi->SetChannel(number, frequency, polarization, diseqc, srate, vpid, apid1, apid2, dpid1, dpid2, tpid, ca, pnr)) - return true; + switch (DvbApi->SetChannel(number, frequency, polarization, diseqc, srate, vpid, apid1, apid2, dpid1, dpid2, tpid, ca, pnr)) { + case scrOk: return true; + case scrNoTransfer: if (Interface) + Interface->Error(tr("Can't start Transfer Mode!")); + return false; + case scrFailed: break; // loop will retry + } esyslog(LOG_ERR, "retrying"); } return false; } if (DvbApi->Recording()) - Interface->Info(tr("Channel locked (recording)!")); + Interface->Error(tr("Channel locked (recording)!")); return false; } |