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
a2f64f8a
Commit
a2f64f8a
authored
Oct 22, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow block_FifoPut(fifo,NULL)
parent
d8ab9784
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/misc/block.c
src/misc/block.c
+8
-4
No files found.
src/misc/block.c
View file @
a2f64f8a
...
...
@@ -401,12 +401,17 @@ void block_FifoEmpty( block_fifo_t *p_fifo )
vlc_mutex_unlock
(
&
p_fifo
->
lock
);
}
/**
* Immediately queue one block at the end of a FIFO.
* @param fifo queue
* @param block head of a block list to queue (may be NULL)
*/
size_t
block_FifoPut
(
block_fifo_t
*
p_fifo
,
block_t
*
p_block
)
{
size_t
i_size
=
0
;
vlc_mutex_lock
(
&
p_fifo
->
lock
);
do
while
(
p_block
!=
NULL
)
{
i_size
+=
p_block
->
i_buffer
;
...
...
@@ -416,10 +421,9 @@ size_t block_FifoPut( block_fifo_t *p_fifo, block_t *p_block )
p_fifo
->
i_size
+=
p_block
->
i_buffer
;
p_block
=
p_block
->
p_next
;
}
}
while
(
p_block
);
/* warn there is data in this fifo */
/* We queued one block: wake up one read-waiting thread */
vlc_cond_signal
(
&
p_fifo
->
wait
);
vlc_mutex_unlock
(
&
p_fifo
->
lock
);
...
...
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