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
5505394d
Commit
5505394d
authored
Jan 30, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a huge regression in block_FifoPut.
It was broken as soon as a linked list of buffers was pushed.
parent
dec529e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/misc/block.c
src/misc/block.c
+6
-3
No files found.
src/misc/block.c
View file @
5505394d
...
...
@@ -571,18 +571,21 @@ void block_FifoPace (block_fifo_t *fifo, size_t max_depth, size_t max_size)
size_t
block_FifoPut
(
block_fifo_t
*
p_fifo
,
block_t
*
p_block
)
{
size_t
i_size
=
0
,
i_depth
=
0
;
block_t
*
p_last
;
if
(
p_block
==
NULL
)
return
0
;
for
(
block_t
*
b
=
p_block
;
b
!=
NULL
;
b
=
b
->
p_next
)
for
(
p_last
=
p_block
;
;
p_last
=
p_last
->
p_next
)
{
i_size
+=
b
->
i_buffer
;
i_size
+=
p_last
->
i_buffer
;
i_depth
++
;
if
(
!
p_last
->
p_next
)
break
;
}
vlc_mutex_lock
(
&
p_fifo
->
lock
);
*
p_fifo
->
pp_last
=
p_block
;
p_fifo
->
pp_last
=
&
p_
block
->
p_next
;
p_fifo
->
pp_last
=
&
p_
last
->
p_next
;
p_fifo
->
i_depth
+=
i_depth
;
p_fifo
->
i_size
+=
i_size
;
/* We queued at least one block: wake up one read-waiting thread */
...
...
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