Changeset 11524


Ignore:
Timestamp:
06/29/19 13:24:22 (14 months ago)
Author:
nautilus7
Message:

[dvbapi] Changed variable name (cosmetic)

dvbapi_parse_capmt() returns the demux_id, not the pmt_pid, so use a proper variable name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-dvbapi.c

    r11523 r11524  
    52455245        }
    52465246
    5247         int32_t pmt_id;
     5247        int32_t demux_id;
    52485248#ifdef QBOXHD
    52495249        uint32_t j1, j2;
     
    52725272        }
    52735273        cs_log_dump_dbg(D_DVBAPI, (uint8_t *)dest, len / 2, "QboxHD pmt.tmp:");
    5274         pmt_id = dvbapi_parse_capmt((uint8_t *)dest + 4, (len / 2) - 4, -1, dp->d_name, 0, 0, 0, 0);
     5274        demux_id = dvbapi_parse_capmt((uint8_t *)dest + 4, (len / 2) - 4, -1, dp->d_name, 0, 0, 0, 0);
    52755275#else
    52765276        if(len > sizeof(dest))
     
    52965296        memcpy(dest + 7, mbuf + 12, len - 12 - 4);
    52975297
    5298         pmt_id = dvbapi_parse_capmt((uint8_t *)dest, 7 + len - 12 - 4, -1, dp->d_name, 0, 0, 0, 0);
     5298        demux_id = dvbapi_parse_capmt((uint8_t *)dest, 7 + len - 12 - 4, -1, dp->d_name, 0, 0, 0, 0);
    52995299#endif
    5300         if(pmt_id >= 0)
    5301         {
    5302             cs_strncpy(demux[pmt_id].pmt_file, dp->d_name, sizeof(demux[pmt_id].pmt_file));
    5303             demux[pmt_id].pmt_time = (time_t)pmt_info.st_mtime;
     5300        if(demux_id >= 0)
     5301        {
     5302            cs_strncpy(demux[demux_id].pmt_file, dp->d_name, sizeof(demux[demux_id].pmt_file));
     5303            demux[demux_id].pmt_time = (time_t)pmt_info.st_mtime;
    53045304        }
    53055305
Note: See TracChangeset for help on using the changeset viewer.