diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-01-18 17:03:34 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-01-18 17:03:34 +0100 |
commit | 3ab1a8602802b3225b91fc8bf7977b2d74b28e5d (patch) | |
tree | c971de47a6825b445ae08fe998038c08f2a146a1 /dvbapi.c | |
parent | c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf (diff) | |
download | vdr-3ab1a8602802b3225b91fc8bf7977b2d74b28e5d.tar.gz vdr-3ab1a8602802b3225b91fc8bf7977b2d74b28e5d.tar.bz2 |
Locking EIT scanner when switching channels
Diffstat (limited to 'dvbapi.c')
-rw-r--r-- | dvbapi.c | 3 |
1 files changed, 2 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.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; |