From 3ab1a8602802b3225b91fc8bf7977b2d74b28e5d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 18 Jan 2001 17:03:34 +0100 Subject: Locking EIT scanner when switching channels --- dvbapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dvbapi.c') 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; -- cgit v1.2.3