Is there a way of getting PAT packets using PID 0x2000?

Module API help / support section for programmers.

Moderators: Dreamer, FredB, X05

sdf
Just popping in
Posts: 3
Joined: Thu Oct 04, 2007 5:37 am

Is there a way of getting PAT packets using PID 0x2000?

Postby sdf » Thu Oct 04, 2007 6:07 am

Hi there!

I tried filtering whole transponder with setting wPID = 0x2000 (or $2000 in Delphi) in the TStartFilterParams struct, and in the callback function i got everyting *except* the packets with PID 0 (PAT).

When i set filter only on PID 0 - the callback receives PAT packets. When i set one filter for PID 0 and another with "wildcard" PID 0x2000 - the callback on PID 0 filter stops being called back :/

I also tried initialize the module with MODTYPE_NONE, MODTYPE_RECORD and MODTYPE_whatever, hoping that in some module types pid 0 is not filtered out when 0x2000 is used, but no luck

Is there a way to receive packets for all PIDs in the callback, including PID 0, short of spawning filter for each? Or, is there a module command to enumerate (parse) all programs with their PIDs (PMT, PCR, Vid, Aud1, Aud2 etc.), rather than parsing PAT and PMTs manually?

Thanks

TechniSat SkyStar HD, WinXP
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Thu Oct 04, 2007 12:08 pm

hello

I think the next DD version will fix the pid 0 problem.
is there a module command to enumerate (parse) all programs with their PIDs (PMT, PCR, Vid, Aud1, Aud2 etc.), rather than parsing PAT and PMTs manually?
you can reach the internal channel list array to get all the information.
DDMODAPI_CHL_GET_POINTER


use a DWORD as parameter to get the pointer to TCHL structure. (in LParam)
DVB Dream - because I have to dream about having time to code it
sdf
Just popping in
Posts: 3
Joined: Thu Oct 04, 2007 5:37 am

Postby sdf » Mon Oct 08, 2007 12:26 am

Thanks a lot, rel!

DDMODAPI_CHL_GET_POINTER worked

Looking forward for the next version, where pid 0 filtering is fixed :)
TechniSat SkyStar HD, WinXP

Return to “Module / Plugin Programming”

Who is online

Users browsing this forum: No registered users and 1 guest