Message ID | 481FC217.4050407@gmail.com |
---|---|

State | New |

Headers |
Received: from mta-out.inet.fi ([195.156.147.13] helo=jenni1.rokki.sonera.fi) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from <anssi.hannula@gmail.com>) id 1JtJxj-0003tp-Bu for vdr@linuxtv.org; Tue, 06 May 2008 11:59:58 +0200 Received: from mail.onse.fi (84.250.84.250) by jenni1.rokki.sonera.fi (8.0.013.9) id 481AE2E30029BF01 for vdr@linuxtv.org; Tue, 6 May 2008 05:27:36 +0300 Received: from gamma.onse.fi (gamma [10.0.0.7]) by mail.onse.fi (Postfix) with ESMTP id 926BBBCF800A for <vdr@linuxtv.org>; Tue, 6 May 2008 05:27:35 +0300 (EEST) Message-ID: <481FC217.4050407@gmail.com> Date: Tue, 06 May 2008 05:27:35 +0300 From: Anssi Hannula <anssi.hannula@gmail.com> User-Agent: Thunderbird 2.0.0.12 (X11/20080305) MIME-Version: 1.0 To: VDR Mailing List <vdr@linuxtv.org> Content-Type: multipart/mixed; boundary="------------000808090505080307060307" X-LSpam-Score: -1.9 (-) X-LSpam-Report: No, score=-1.9 required=5.0 tests=AWL=0.662, BAYES_00=-2.599 autolearn=ham Subject: [vdr] VDR constantly adding and deleting filters X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List <vdr@linuxtv.org> List-Id: VDR Mailing List <vdr.linuxtv.org> List-Unsubscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=unsubscribe> List-Archive: <http://www.linuxtv.org/pipermail/vdr> List-Post: <mailto:vdr@linuxtv.org> List-Help: <mailto:vdr-request@linuxtv.org?subject=help> List-Subscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=subscribe> X-List-Received-Date: Tue, 06 May 2008 09:59:58 -0000 Status: O X-Status: X-Keywords: X-UID: 16757 |

## Commit Message

Anssi Hannula
May 6, 2008, 2:27 a.m. UTC

Hi all! While debugging another issue, I noticed (ADDF/DELF streamdev traffic) that VDR is constantly adding and deleting filters in cPatFilter::Process(). As I don't know of this filter stuff, I ask here: Is this correct behaviour? It probably is, but I just want to be sure :) Below is a log excerpt with the attached patch: > May 6 05:18:42 epsilon vdr: [30688] Adding, pmtPid 264, Index = 7, Sid = 4417 > May 6 05:18:42 epsilon vdr: [30682] Deleting, pmtPid 256, pmtIndex = 1, lastPmtScan = 0 > May 6 05:18:42 epsilon vdr: [30682] Adding, pmtPid 257, Index = 3, Sid = 97 > May 6 05:18:42 epsilon vdr: [30685] Deleting, pmtPid 256, pmtIndex = 0, lastPmtScan = 0 > May 6 05:18:42 epsilon vdr: [30685] Adding, pmtPid 257, Index = 2, Sid = 273 > May 6 05:18:42 epsilon vdr: [30688] Deleting, pmtPid 264, pmtIndex = 6, lastPmtScan = 0 > May 6 05:18:42 epsilon vdr: [30688] Adding, pmtPid 266, Index = 8, Sid = 4481 > May 6 05:18:42 epsilon vdr: [30682] Deleting, pmtPid 257, pmtIndex = 2, lastPmtScan = 0 > May 6 05:18:42 epsilon vdr: [30682] Adding, pmtPid 264, Index = 4, Sid = 209 > May 6 05:18:42 epsilon vdr: [30685] Deleting, pmtPid 257, pmtIndex = 1, lastPmtScan = 0 > May 6 05:18:42 epsilon vdr: [30685] Adding, pmtPid 258, Index = 3, Sid = 289 > May 6 05:18:43 epsilon vdr: [30688] Deleting, pmtPid 266, pmtIndex = 7, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30688] Adding, pmtPid 265, Index = 9, Sid = 4433 > May 6 05:18:43 epsilon vdr: [30679] Deleting, pmtPid 1150, pmtIndex = 4, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30679] Adding, pmtPid 1151, Index = 6, Sid = 1187 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 264, pmtIndex = 3, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 260, Index = 5, Sid = 257 > May 6 05:18:43 epsilon vdr: [30685] Deleting, pmtPid 258, pmtIndex = 2, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30685] Adding, pmtPid 259, Index = 4, Sid = 305 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 260, pmtIndex = 4, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 261, Index = 6, Sid = 241 > May 6 05:18:43 epsilon vdr: [30685] Deleting, pmtPid 259, pmtIndex = 3, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30685] Adding, pmtPid 261, Index = 5, Sid = 353 > May 6 05:18:43 epsilon vdr: [30688] Deleting, pmtPid 265, pmtIndex = 8, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30688] Adding, pmtPid 263, Index = 10, Sid = 4401 > May 6 05:18:43 epsilon vdr: [30679] Deleting, pmtPid 1151, pmtIndex = 5, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 261, pmtIndex = 5, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 259, Index = 7, Sid = 177 > May 6 05:18:43 epsilon vdr: [30679] Adding, pmtPid 1119, Index = 7, Sid = 1190 > May 6 05:18:43 epsilon vdr: [30685] Deleting, pmtPid 261, pmtIndex = 4, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30685] Adding, pmtPid 262, Index = 6, Sid = 385 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 259, pmtIndex = 6, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30685] Deleting, pmtPid 262, pmtIndex = 5, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30685] Adding, pmtPid 263, Index = 7, Sid = 369 > May 6 05:18:43 epsilon vdr: [30688] Deleting, pmtPid 263, pmtIndex = 9, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 258, Index = 1, Sid = 65 > May 6 05:18:43 epsilon vdr: [30679] Deleting, pmtPid 1119, pmtIndex = 6, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30679] Adding, pmtPid 1154, Index = 8, Sid = 1354 > May 6 05:18:43 epsilon vdr: [30685] Deleting, pmtPid 263, pmtIndex = 6, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30685] Adding, pmtPid 260, Index = 8, Sid = 337 > May 6 05:18:43 epsilon vdr: [30688] Adding, pmtPid 256, Index = 1, Sid = 17 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 258, pmtIndex = 0, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 256, Index = 2, Sid = 49 > May 6 05:18:43 epsilon vdr: [30688] Deleting, pmtPid 256, pmtIndex = 0, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30688] Adding, pmtPid 257, Index = 2, Sid = 33 > May 6 05:18:43 epsilon vdr: [30685] Deleting, pmtPid 260, pmtIndex = 7, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 256, pmtIndex = 1, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 257, Index = 3, Sid = 97 > May 6 05:18:43 epsilon vdr: [30679] Deleting, pmtPid 1154, pmtIndex = 7, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30679] Adding, pmtPid 1144, Index = 9, Sid = 1380 > May 6 05:18:43 epsilon vdr: [30688] Deleting, pmtPid 257, pmtIndex = 1, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30688] Adding, pmtPid 259, Index = 3, Sid = 81 > May 6 05:18:43 epsilon vdr: [30685] Adding, pmtPid 256, Index = 1, Sid = 225 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 257, pmtIndex = 2, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 264, Index = 4, Sid = 209 > May 6 05:18:43 epsilon vdr: [30688] Deleting, pmtPid 259, pmtIndex = 2, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30688] Adding, pmtPid 260, Index = 4, Sid = 129 > May 6 05:18:43 epsilon vdr: [30685] Deleting, pmtPid 256, pmtIndex = 0, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30685] Adding, pmtPid 257, Index = 2, Sid = 273 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 264, pmtIndex = 3, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 260, Index = 5, Sid = 257 > May 6 05:18:43 epsilon vdr: [30679] Deleting, pmtPid 1144, pmtIndex = 8, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30679] Adding, pmtPid 1145, Index = 10, Sid = 1510 > May 6 05:18:43 epsilon vdr: [30688] Deleting, pmtPid 260, pmtIndex = 3, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30688] Adding, pmtPid 258, Index = 5, Sid = 145 > May 6 05:18:43 epsilon vdr: [30682] Deleting, pmtPid 260, pmtIndex = 4, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30682] Adding, pmtPid 261, Index = 6, Sid = 241 > May 6 05:18:43 epsilon vdr: [30685] Deleting, pmtPid 257, pmtIndex = 1, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30685] Adding, pmtPid 258, Index = 3, Sid = 289 > May 6 05:18:43 epsilon vdr: [30688] Deleting, pmtPid 258, pmtIndex = 4, lastPmtScan = 0 > May 6 05:18:43 epsilon vdr: [30688] Adding, pmtPid 261, Index = 6, Sid = 4369 > May 6 05:18:44 epsilon vdr: [30682] Deleting, pmtPid 261, pmtIndex = 5, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30682] Adding, pmtPid 259, Index = 7, Sid = 177 > May 6 05:18:44 epsilon vdr: [30685] Deleting, pmtPid 258, pmtIndex = 2, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30685] Adding, pmtPid 259, Index = 4, Sid = 305 > May 6 05:18:44 epsilon vdr: [30688] Deleting, pmtPid 261, pmtIndex = 5, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30688] Adding, pmtPid 264, Index = 7, Sid = 4417 > May 6 05:18:44 epsilon vdr: [30685] Deleting, pmtPid 259, pmtIndex = 3, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30685] Adding, pmtPid 261, Index = 5, Sid = 353 > May 6 05:18:44 epsilon vdr: [30682] Deleting, pmtPid 259, pmtIndex = 6, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30685] Deleting, pmtPid 261, pmtIndex = 4, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30685] Adding, pmtPid 262, Index = 6, Sid = 385 > May 6 05:18:44 epsilon vdr: [30679] Deleting, pmtPid 1145, pmtIndex = 9, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30679] Adding, pmtPid 1146, Index = 11, Sid = 1520 > May 6 05:18:44 epsilon vdr: [30688] Deleting, pmtPid 264, pmtIndex = 6, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30688] Adding, pmtPid 266, Index = 8, Sid = 4481 > May 6 05:18:44 epsilon vdr: [30682] Adding, pmtPid 258, Index = 1, Sid = 65 > May 6 05:18:44 epsilon vdr: [30685] Deleting, pmtPid 262, pmtIndex = 5, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30685] Adding, pmtPid 263, Index = 7, Sid = 369 > May 6 05:18:44 epsilon vdr: [30688] Deleting, pmtPid 266, pmtIndex = 7, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30688] Adding, pmtPid 265, Index = 9, Sid = 4433 > May 6 05:18:44 epsilon vdr: [30685] Deleting, pmtPid 263, pmtIndex = 6, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30685] Adding, pmtPid 260, Index = 8, Sid = 337 > May 6 05:18:44 epsilon vdr: [30688] Deleting, pmtPid 265, pmtIndex = 8, lastPmtScan = 0 > May 6 05:18:44 epsilon vdr: [30688] Adding, pmtPid 263, Index = 10, Sid = 4401 > May 6 05:18:44 epsilon vdr: [30679] Deleting, pmtPid 1146, pmtIndex = 10, lastPmtScan = 0

## Comments

On 05/06/08 04:27, Anssi Hannula wrote: > Hi all! > > While debugging another issue, I noticed (ADDF/DELF streamdev traffic) > that VDR is constantly adding and deleting filters in cPatFilter::Process(). > > As I don't know of this filter stuff, I ask here: > Is this correct behaviour? That's normal behavior - VDR is scaning for the PMT data of the various channels. Klaus

Index: vdr-1.6.0-sechand/pat.c =================================================================== --- vdr-1.6.0-sechand/pat.c +++ vdr-1.6.0-sechand/pat.c 2008-05-06 05:08:48.000000000 +0300 @@ -276,6 +276,7 @@ if (Pid == 0x00) { if (Tid == 0x00) { if (pmtPid && time(NULL) - lastPmtScan > PMT_SCAN_TIMEOUT) { + dsyslog("Deleting, pmtPid %d, pmtIndex = %d, lastPmtScan = %lu", pmtPid, pmtIndex, lastPmtScan); Del(pmtPid, 0x02); pmtPid = 0; pmtIndex++; @@ -292,6 +293,7 @@ if (Index++ >= pmtIndex && Channels.GetByServiceID(Source(), Transponder(), assoc.getServiceId())) { pmtPid = assoc.getPid(); pmtSid = assoc.getServiceId(); + dsyslog("Adding, pmtPid %d, Index = %d, Sid = %d", pmtPid, Index, pmtSid); Add(pmtPid, 0x02); break; }