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
f6f2cc05
Commit
f6f2cc05
authored
Feb 10, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/decode_mpeg.c: do not leak PMT handles
parent
9b3cc048
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
examples/decode_mpeg.c
examples/decode_mpeg.c
+6
-0
No files found.
examples/decode_mpeg.c
View file @
f6f2cc05
...
...
@@ -324,6 +324,12 @@ static void DumpPAT(void* p_data, dvbpsi_pat_t* p_pat)
fprintf
(
stderr
,
" | program_number @ [NIT|PMT]_PID
\n
"
);
while
(
p_program
)
{
if
(
p_stream
->
pmt
.
handle
)
{
dvbpsi_DetachPMT
(
p_stream
->
pmt
.
handle
);
dvbpsi_DeleteHandle
(
p_stream
->
pmt
.
handle
);
p_stream
->
pmt
.
handle
=
NULL
;
}
p_stream
->
i_pmt
++
;
p_stream
->
pmt
.
i_number
=
p_program
->
i_number
;
p_stream
->
pmt
.
pid_pmt
=
&
p_stream
->
pid
[
p_program
->
i_pid
];
...
...
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