summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-12 10:27:18 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-12 10:27:18 +0200
commit3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5 (patch)
tree91c405ba6a099956101267da217b732d89d2944c /dvbapi.c
parent103177a9e75396d18fbbe56a6fa993bb4bfe6263 (diff)
downloadvdr-3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5.tar.gz
vdr-3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5.tar.bz2
Additional 'emergency exit' in case channel switching doesn't work several times in a row
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dvbapi.c b/dvbapi.c
index d1dc5283..45a526b4 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.81 2001/06/27 08:32:32 kls Exp $
+ * $Id: dvbapi.c 1.82 2001/06/27 11:34:17 kls Exp $
*/
#include "dvbapi.h"
@@ -2222,6 +2222,8 @@ bool cDvbApi::SetChannel(int ChannelNumber, int FrequencyMHz, char Polarization,
if (!ChannelSynced) {
esyslog(LOG_ERR, "ERROR: channel %d not sync'ed!", ChannelNumber);
+ if (this == PrimaryDvbApi)
+ cThread::RaisePanic();
return false;
}