From 3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 12 Jul 2001 10:27:18 +0200 Subject: Additional 'emergency exit' in case channel switching doesn't work several times in a row --- dvbapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dvbapi.c') 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; } -- cgit v1.2.3