summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2010-03-24 20:38:33 +0100
committerLars Hanisch <dvb@flensrocker.de>2010-03-24 20:38:33 +0100
commit5055546e40d4171a7f67689a3ea0b103d60b762b (patch)
treea4e5b7f115ebc40179b84f1b908c2d5a9a66b851 /device.c
parent7173683e4cd89bd981421aa59e29d54705b295a2 (diff)
downloadvdr-plugin-pvrinput-5055546e40d4171a7f67689a3ea0b103d60b762b.tar.gz
vdr-plugin-pvrinput-5055546e40d4171a7f67689a3ea0b103d60b762b.tar.bz2
Rework of teletext PMT handling
Due to retuning of the vdr on a pid-change the intended behaviour of pvrinput could not be achieved. Now a PMT with teletext descriptor is sent if there's at least one device present, which is capable of sliced vbi.
Diffstat (limited to 'device.c')
-rw-r--r--device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/device.c b/device.c
index f77ed15..94d359a 100644
--- a/device.c
+++ b/device.c
@@ -18,6 +18,7 @@ char CARDNAME[][9] = {
cPvrDevice *PvrDevices[kMaxPvrDevices];
cString cPvrDevice::externChannelSwitchScript;
+int cPvrDevice::VBIDeviceCount = 0;
cPvrDevice::cPvrDevice(int DeviceNumber)
: number(DeviceNumber),
@@ -88,7 +89,8 @@ cPvrDevice::cPvrDevice(int DeviceNumber)
/*The pvrusb2 driver advertises vbi capability, although it isn't there.
This was fixed in v4l-dvb hg in 01/2009 and will hopefully be in Kernel 2.6.30*/
SupportsSlicedVBI = true;
- log(pvrDEBUG1, "%s supports sliced VBI Capture", *devName);
+ VBIDeviceCount++;
+ log(pvrDEBUG1, "%s supports sliced VBI Capture, total number of VBI capable devices is now &d", *devName, VBIDeviceCount);
}
if (video_vcap.capabilities & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)
hasDecoder = true; //can only be a PVR350
@@ -252,6 +254,7 @@ bool cPvrDevice::Probe(int DeviceNumber)
bool cPvrDevice::Initialize(void)
{
int found = 0;
+ VBIDeviceCount = 0;
#ifdef PVR_SOURCEPARAMS
new cPvrSourceParam();
#endif