summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-01-18 17:03:34 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2001-01-18 17:03:34 +0100
commit3ab1a8602802b3225b91fc8bf7977b2d74b28e5d (patch)
treec971de47a6825b445ae08fe998038c08f2a146a1 /dvbapi.c
parentc0fa83065d9f190fa2b9e8e7e4df0b088514cdaf (diff)
downloadvdr-3ab1a8602802b3225b91fc8bf7977b2d74b28e5d.tar.gz
vdr-3ab1a8602802b3225b91fc8bf7977b2d74b28e5d.tar.bz2
Locking EIT scanner when switching channels
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 4c8be491..54f6fe53 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.48 2001/01/14 10:15:26 kls Exp $
+ * $Id: dvbapi.c 1.49 2001/01/18 17:03:34 kls Exp $
*/
#include "dvbapi.h"
@@ -2165,6 +2165,7 @@ void cDvbApi::Flush(void)
bool cDvbApi::SetChannel(int ChannelNumber, int FrequencyMHz, char Polarization, int Diseqc, int Srate, int Vpid, int Apid, int Ca, int Pnr)
{
if (videoDev >= 0) {
+ cThreadLock ThreadLock(siProcessor); // makes sure the siProcessor won't access the vbi-device while switching
StopTransfer();
SetPlayMode(videoDev, VID_PLAY_RESET);
struct frontend front;