Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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
vlc-2-2
Commits
dccd7a6b
Commit
dccd7a6b
authored
Feb 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sout_StreamChainDelete: iterative implementation
parent
f9db0ea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+8
-7
No files found.
src/stream_output/stream_output.c
View file @
dccd7a6b
...
...
@@ -812,14 +812,15 @@ static void sout_StreamDelete( sout_stream_t *p_stream )
*/
void
sout_StreamChainDelete
(
sout_stream_t
*
p_first
,
sout_stream_t
*
p_last
)
{
if
(
!
p_first
)
return
;
sout_stream_t
*
p_next
=
p_first
->
p_next
;
while
(
p_first
!=
NULL
)
{
sout_stream_t
*
p_next
=
p_first
->
p_next
;
sout_StreamDelete
(
p_first
);
if
(
p_first
!=
p_last
)
sout_StreamChainDelete
(
p_next
,
p_last
);
sout_StreamDelete
(
p_first
);
if
(
p_first
==
p_last
)
break
;
p_first
=
p_next
;
}
}
/* Create a "stream_out" module, which may forward its ES to p_next module */
...
...
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