pike.git / src / modules / DVB / dvb.c

version» Context lines:

pike.git/src/modules/DVB/dvb.c:996:    check_all_args("DVB.dvb->analyze_pmt", args, BIT_INT, BIT_INT, 0);       devname = mk_devname(DVB->cardn, DEMUXDEVICE);    dmx = open (devname, O_RDWR | O_NONBLOCK);    if (dmx < 0) {    snprintf (DVB->low_errmsg, MAX_ERR_LEN, "DMX SET SECTION FILTER.\n");    push_int(0);    return;    }    +  /* Clear the stream, and most notably, set stream.ecminfo to NULL. */ +  memset(&stream, 0, sizeof(stream)); +     pmt_pid = (u_short)Pike_sp[-1].u.integer;    Pike_sp--;       program_number = (u_short)Pike_sp[-1].u.integer;    Pike_sp--;       SetFilt(dmx,pmt_pid,2);       for (retries=0; retries<100; retries++)    {