Commit f926c252 authored by Jean-Paul Saman's avatar Jean-Paul Saman

SIS: rename dvbpsi_sis_component_utc_splice_time_t to dvbpsi_sis_component_t

Rename struct dvbpsi_sis_component_utc_splice_time_t to dvbpsi_sis_component_t and
also rename dvbpsi_sis_splice_event_t::p_splice_utc_time to dvbpsi_sis_splice_event_t::p_component.
parent 3caed9e8
......@@ -421,10 +421,10 @@ static void cmd_splice_schedule_cleanup(dvbpsi_sis_cmd_splice_schedule_t *p_cmd)
dvbpsi_sis_splice_event_t *p_event = p_cmd->p_splice_event;
while (p_event) {
dvbpsi_sis_splice_event_t *p_next = p_event->p_next;
if (p_event->p_splice_time) {
dvbpsi_sis_component_utc_splice_time_t *p_time = p_event->p_splice_time;
if (p_event->p_component) {
dvbpsi_sis_component_t *p_time = p_event->p_component;
while (p_time) {
dvbpsi_sis_component_utc_splice_time_t *p_tmp = p_time->p_next;
dvbpsi_sis_component_t *p_tmp = p_time->p_next;
free(p_time);
p_time = p_tmp;
}
......@@ -473,7 +473,7 @@ static dvbpsi_sis_cmd_splice_schedule_t *
}
else { /* component */
/* Check */
dvbpsi_sis_component_utc_splice_time_t *p_time = p_event->p_splice_time;
dvbpsi_sis_component_t *p_time = p_event->p_component;
p_event->i_component_count = p_data[pos++];
assert(pos + p_event->i_component_count * 5 < i_length);
if (pos + p_event->i_component_count * 5 >= i_length) {
......@@ -482,12 +482,12 @@ static dvbpsi_sis_cmd_splice_schedule_t *
}
for (uint8_t j = 0; j < p_event->i_component_count; j++) {
p_time = malloc(sizeof(dvbpsi_sis_component_utc_splice_time_t));
p_time = malloc(sizeof(dvbpsi_sis_component_t));
if (!p_time) {
cmd_splice_schedule_cleanup(p_cmd);
return NULL;
}
p_time->component_tag = p_data[pos++];
p_time->i_tag = p_data[pos++];
p_time->i_utc_splice_time = p_data[pos]; /* GPS_UTC time */
pos += 4;
p_time = p_time->p_next;
......
......@@ -143,17 +143,17 @@ typedef struct dvbpsi_sis_break_duration_s
} dvbpsi_sis_break_duration_t;
/*!
* \typedef struct dvbpsi_sis_component_utc_splice_time_s dvbpsi_sis_component_utc_splice_time_t
* \typedef struct dvbpsi_sis_component_s dvbpsi_sis_component_t
* \brief combined component tag and UTC splice time definition
*/
typedef struct dvbpsi_sis_component_utc_splice_time_s dvbpsi_sis_component_utc_splice_time_t;
typedef struct dvbpsi_sis_component_s dvbpsi_sis_component_t;
/*!
* \struct dvbpsi_sis_component_utc_splice_time_s
* \struct dvbpsi_sis_component_s
* \brief combined component tag and UTC splice time definition
*/
struct dvbpsi_sis_component_utc_splice_time_s
struct dvbpsi_sis_component_s
{
uint8_t component_tag; /*!< identifies the elementary PID stream containing
uint8_t i_tag; /*!< identifies the elementary PID stream containing
the Splice Point specified by the value of
splice_time() that follows. */
uint32_t i_utc_splice_time; /*!< time of the signaled splice event as
......@@ -162,7 +162,7 @@ struct dvbpsi_sis_component_utc_splice_time_s
Maybe converted to UTC without use of
GPS_UTC_offset value from System Time table. */
dvbpsi_sis_component_utc_splice_time_t *p_next; /*!< next component, utc splice time structure */
dvbpsi_sis_component_t *p_next; /*!< next component, utc splice time structure */
};
/*!
......@@ -193,7 +193,7 @@ struct dvbpsi_sis_splice_event_s
uint8_t i_component_count; /*!< number of stream PID in the following
loop. A component is equivalent to
elementary stream PIDs.*/
dvbpsi_sis_component_utc_splice_time_t *p_splice_time;
dvbpsi_sis_component_t *p_component;
/*!< identifies the elementary PID stream containing
the Splice Point specified by the value of
splice_time() that follows. */
......
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