diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2010-03-24 20:38:33 +0100 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2010-03-24 20:38:33 +0100 |
commit | 5055546e40d4171a7f67689a3ea0b103d60b762b (patch) | |
tree | a4e5b7f115ebc40179b84f1b908c2d5a9a66b851 /device.c | |
parent | 7173683e4cd89bd981421aa59e29d54705b295a2 (diff) | |
download | vdr-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |