Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: EPG with 2 cards and 2 vdr
Juergen Schmidt wrote:
>
> Hello,
>
> FYI:
>
> I found, that when you are running two vdr instances on seperate cards
> (-D), EPG scans are only done on the first one (-D 0). The others never
> start scanning - independent from the EPG scan timeout settings.
> This was true with 1.0.x and 1.1.29
I just tried this with a slightly modified eitscan.c to have it start
after a few seconds:
--- eitscan.c 2003/03/16 13:29:55 1.12
+++ eitscan.c 2003/05/24 11:32:19
@@ -50,11 +50,11 @@
{
if (Setup.EPGScanTimeout && Channels.MaxNumber() > 1) {
time_t now = time(NULL);
- if (now - lastScan > ScanTimeout && now - lastActivity > ActivityTimeout) {
+ if (now - lastScan > 5 && now - lastActivity > 5) {
for (int i = 0; i < cDevice::NumDevices(); i++) {
cDevice *Device = cDevice::GetDevice(i);
if (Device && Device->CardIndex() < MAXDVBDEVICES) {
- if (Device != cDevice::PrimaryDevice() || (cDevice::NumDevices() == 1 && Setup.EPGScanTimeout && now - lastActivity > Setup.EPGScanTimeout * 3600)) {
+ if (Device != cDevice::PrimaryDevice() || (cDevice::NumDevices() == 1 && Setup.EPGScanTimeout && now - lastActivity > 10)) {
if (!(Device->Receiving(true) || Device->Replaying())) {
for (;;) {
cChannel *Channel = Channels.GetByNumber(lastChannel[Device->DeviceNumber()] + 1, 1);
@@ -63,6 +63,7 @@
if (Channel->Sid() && Device->ProvidesChannel(Channel) && !TransponderScanned(Channel)) {
if (Device == cDevice::PrimaryDevice() && !currentChannel)
currentChannel = Device->CurrentChannel();
+ printf("%d %3d\n", Device->CardIndex(), Channel->Number());//XXX
Device->SwitchChannel(Channel, false);
break;
}
and started two instances of VDR. After a few seconds I got output on stdout
from both of them, indicating that they are switching through the channels.
So I'm afraid I can't reproduce what you are observing.
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index