Commit 1781bee6 authored by Jean-Paul Saman's avatar Jean-Paul Saman

examples/dvbinfo: Use PMT program number as i_extension

parent 7926c45e
......@@ -758,8 +758,8 @@ static void handle_PAT(void* p_data, dvbpsi_pat_t* p_pat)
p_pmt->pid_pmt->i_pid = p_program->i_pid;
p_pmt->p_next = NULL;
/* PMT table_id == 0x02 and extenion == 0x0 */
if (!dvbpsi_pmt_attach(p_pmt->handle, 0x02, 0x00,
/* PMT table_id == 0x02 and extenion == p_program->i_number */
if (!dvbpsi_pmt_attach(p_pmt->handle, 0x02, p_program->i_number,
p_program->i_number, handle_PMT, p_stream))
{
fprintf(stderr, "dvbinfo: Failed to attach new pmt decoder\n");
......@@ -2546,7 +2546,7 @@ void libdvbpsi_exit(ts_stream_t *stream)
while (p_pmt)
{
dvbpsi_t *handle = p_pmt->handle;
dvbpsi_pmt_detach(handle, 0x02, 0x0);
dvbpsi_pmt_detach(handle, 0x02, p_pmt->i_number);
dvbpsi_delete(p_pmt->handle);
stream->i_pmt--;
......
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