diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-07-12 10:27:18 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-07-12 10:27:18 +0200 |
commit | 3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5 (patch) | |
tree | 91c405ba6a099956101267da217b732d89d2944c /dvbapi.c | |
parent | 103177a9e75396d18fbbe56a6fa993bb4bfe6263 (diff) | |
download | vdr-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |