Commit 177324ad authored by Jean-Paul Saman's avatar Jean-Paul Saman

TOT: Remove unused variable of dvbpsi_tot_t

The member i_crc is not used anymore now the CRC32 can be checked and
generated by the dvbpsi_BuildPSISection() and dvbpsi_ValidPSISection()
functions.
parent f3b5de0c
......@@ -1355,10 +1355,8 @@ static void handle_TOT(void* p_data, dvbpsi_tot_t* p_tot)
printf("\tVersion number : %d\n", p_tot->i_version);
printf("\tCurrent next : %s\n", p_tot->b_current_next ? "yes" : "no");
printf("\tUTC time : %"PRId64"\n", p_tot->i_utc_time);
if (table_id == 0x73) /* TOT */
printf("\tCRC 32 : %d\n", p_tot->i_crc);
DumpDescriptors("\t | ]", p_tot->p_first_descriptor);
dvbpsi_tot_delete(p_tot);
}
......
......@@ -153,7 +153,6 @@ void dvbpsi_tot_init(dvbpsi_tot_t* p_tot, uint8_t i_table_id, uint16_t i_extensi
p_tot->i_version = i_version;
p_tot->b_current_next = b_current_next;
p_tot->i_crc = 0;
p_tot->i_utc_time = i_utc_time;
p_tot->p_first_descriptor = NULL;
}
......@@ -543,7 +542,6 @@ dvbpsi_psi_section_t* dvbpsi_tot_sections_generate(dvbpsi_t *p_dvbpsi, dvbpsi_to
{
/* A TOT has a CRC_32 although it's a private section,
but the CRC_32 is part of the payload! */
p_tot->i_crc = p_result->i_crc;
p_result->p_payload_end += 4;
p_result->i_length += 4;
}
......
......@@ -68,8 +68,6 @@ typedef struct dvbpsi_tot_s
dvbpsi_descriptor_t * p_first_descriptor; /*!< descriptor list */
uint32_t i_crc; /*!< CRC_32 (TOT only) */
} __attribute__((packed)) dvbpsi_tot_t;
/*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment