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
4bdc0bbd
Commit
4bdc0bbd
authored
Sep 14, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide (+minor changes) block_fifo_t layout
parent
7dd2f154
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
include/vlc_block.h
include/vlc_block.h
+0
-12
src/misc/block.c
src/misc/block.c
+2
-4
No files found.
include/vlc_block.h
View file @
4bdc0bbd
...
...
@@ -252,8 +252,6 @@ static inline block_t *block_ChainGather( block_t *p_list )
/****************************************************************************
* Fifos of blocks.
****************************************************************************
* Avoid touching block_fifo_t unless you really know what you are doing.
* ( Some race conditions has to be correctly handled, like in win32 ;)
* - block_FifoNew : create and init a new fifo
* - block_FifoRelease : destroy a fifo and free all blocks in it.
* - block_FifoEmpty : free all blocks in a fifo
...
...
@@ -265,16 +263,6 @@ static inline block_t *block_ChainGather( block_t *p_list )
* - block_FifoCount : how many packets are waiting in the fifo
* - block_FifoSize : how many cumulated bytes are waiting in the fifo
****************************************************************************/
struct
block_fifo_t
{
vlc_mutex_t
lock
;
/* fifo data lock */
vlc_cond_t
wait
;
/* fifo data conditional variable */
int
i_depth
;
block_t
*
p_first
;
block_t
**
pp_last
;
int
i_size
;
};
#define block_FifoNew( a ) __block_FifoNew( VLC_OBJECT(a) )
VLC_EXPORT
(
block_fifo_t
*
,
__block_FifoNew
,
(
vlc_object_t
*
)
);
...
...
src/misc/block.c
View file @
4bdc0bbd
...
...
@@ -155,18 +155,16 @@ static void BlockRelease( block_t *p_block )
/*****************************************************************************
* block_fifo_t management
*****************************************************************************/
#if 0
struct
block_fifo_t
{
vlc_mutex_t
lock
;
/* fifo data lock */
vlc_cond_t
wait
;
/* fifo data conditional variable */
int
i_depth;
size_t
i_depth
;
block_t
*
p_first
;
block_t
**
pp_last
;
int
i_size;
size_t
i_size
;
};
#endif
block_fifo_t
*
__block_FifoNew
(
vlc_object_t
*
p_obj
)
{
...
...
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