Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e6cdbf3d
Commit
e6cdbf3d
authored
Oct 27, 2005
by
Marian Durkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed huge memory leak affecting #rtp stream output
parent
3ca216ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
modules/access_output/udp.c
modules/access_output/udp.c
+14
-0
No files found.
modules/access_output/udp.c
View file @
e6cdbf3d
...
...
@@ -447,6 +447,20 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
static
int
WriteRaw
(
sout_access_out_t
*
p_access
,
block_t
*
p_buffer
)
{
sout_access_out_sys_t
*
p_sys
=
p_access
->
p_sys
;
block_t
*
p_buf
;
vlc_mutex_lock
(
&
p_sys
->
p_thread
->
blocks_lock
);
while
(
p_sys
->
p_thread
->
i_empty_depth
>=
MAX_EMPTY_BLOCKS
)
{
p_buf
=
p_sys
->
p_thread
->
p_empty_blocks
;
p_sys
->
p_thread
->
p_empty_blocks
=
p_sys
->
p_thread
->
p_empty_blocks
->
p_next
;
p_sys
->
p_thread
->
i_empty_depth
--
;
vlc_mutex_unlock
(
&
p_sys
->
p_thread
->
blocks_lock
);
block_Release
(
p_buf
);
vlc_mutex_lock
(
&
p_sys
->
p_thread
->
blocks_lock
);
}
vlc_mutex_unlock
(
&
p_sys
->
p_thread
->
blocks_lock
);
block_FifoPut
(
p_sys
->
p_thread
->
p_fifo
,
p_buffer
);
...
...
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