Lines Matching refs:p_program
131 dvbpsi_pat_program_t* p_program = p_pat->p_first_program; in dvbpsi_pat_empty() local
133 while(p_program != NULL) in dvbpsi_pat_empty()
135 dvbpsi_pat_program_t* p_tmp = p_program->p_next; in dvbpsi_pat_empty()
136 free(p_program); in dvbpsi_pat_empty()
137 p_program = p_tmp; in dvbpsi_pat_empty()
162 dvbpsi_pat_program_t* p_program; in dvbpsi_pat_program_add() local
169 p_program = (dvbpsi_pat_program_t*) malloc(sizeof(dvbpsi_pat_program_t)); in dvbpsi_pat_program_add()
170 if (p_program == NULL) in dvbpsi_pat_program_add()
173 p_program->i_number = i_number; in dvbpsi_pat_program_add()
174 p_program->i_pid = i_pid; in dvbpsi_pat_program_add()
175 p_program->p_next = NULL; in dvbpsi_pat_program_add()
178 p_pat->p_first_program = p_program; in dvbpsi_pat_program_add()
184 p_last_program->p_next = p_program; in dvbpsi_pat_program_add()
187 return p_program; in dvbpsi_pat_program_add()
370 … dvbpsi_pat_program_t* p_program = dvbpsi_pat_program_add(p_pat, i_program_number, i_pid); in dvbpsi_pat_sections_decode() local
371 if (p_program) in dvbpsi_pat_sections_decode()
392 dvbpsi_pat_program_t* p_program = p_pat->p_first_program; in dvbpsi_pat_sections_generate() local
417 while (p_program != NULL) in dvbpsi_pat_sections_generate()
445 p_current->p_payload_end[0] = p_program->i_number >> 8; in dvbpsi_pat_sections_generate()
446 p_current->p_payload_end[1] = p_program->i_number; in dvbpsi_pat_sections_generate()
447 p_current->p_payload_end[2] = (p_program->i_pid >> 8) | 0xe0; in dvbpsi_pat_sections_generate()
448 p_current->p_payload_end[3] = p_program->i_pid; in dvbpsi_pat_sections_generate()
454 p_program = p_program->p_next; in dvbpsi_pat_sections_generate()