Hi,
I've just compiled CDK and now I've compiled mgcamd code but when I try to run it in dreambox it shows the following error:
Code:
root@dreambox:/tmp> ./mgcam
Analyzing PMT.TMP ...
Program number 65 ...
Language = esl
ca_descr 18 01 e6 22
Found nagra
Language = eng
ca_descr 18 01 e6 22
Found nagra
DMX SET SECTION FILTER: Invalid argument
Try system Nagra id 0 ecm 622
DMX SET SECTION FILTER: Invalid argument
Try system Nagra id 0 ecm 622
It seems the problem is here:
Code:
static void SetFilt(int fd,int pid,int tnr)
{
struct dmxSctFilterParams FilterParams;
memset(&FilterParams.filter.filter,0,DMX_FILTER_SIZE);
memset(&FilterParams.filter.mask,0,DMX_FILTER_SIZE);
if (tnr >= 0)
{
FilterParams.filter.filter[0] = tnr;
FilterParams.filter.mask[0] = 0xff;
}
FilterParams.timeout = 15000;
FilterParams.flags = DMX_IMMEDIATE_START;
FilterParams.pid = pid;
if (ioctl(fd,DMX_SET_FILTER,&FilterParams) < 0)
perror("DMX SET SECTION FILTER");
}
Any ideas?
Thanks in advance.