Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
1781bee6
Commit
1781bee6
authored
Dec 10, 2015
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/dvbinfo: Use PMT program number as i_extension
parent
7926c45e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/dvbinfo/libdvbpsi.c
examples/dvbinfo/libdvbpsi.c
+3
-3
No files found.
examples/dvbinfo/libdvbpsi.c
View file @
1781bee6
...
...
@@ -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
--
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment