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
3110a86a
Commit
3110a86a
authored
Sep 14, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write accessor for relevant block_fifo_t state
parent
b228fab6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
include/vlc_block.h
include/vlc_block.h
+2
-0
src/libvlc.sym
src/libvlc.sym
+2
-0
src/misc/block.c
src/misc/block.c
+21
-0
No files found.
include/vlc_block.h
View file @
3110a86a
...
@@ -281,5 +281,7 @@ VLC_EXPORT( void, block_FifoEmpty, ( block_fifo_t * ) );
...
@@ -281,5 +281,7 @@ VLC_EXPORT( void, block_FifoEmpty, ( block_fifo_t * ) );
VLC_EXPORT
(
int
,
block_FifoPut
,
(
block_fifo_t
*
,
block_t
*
)
);
VLC_EXPORT
(
int
,
block_FifoPut
,
(
block_fifo_t
*
,
block_t
*
)
);
VLC_EXPORT
(
block_t
*
,
block_FifoGet
,
(
block_fifo_t
*
)
);
VLC_EXPORT
(
block_t
*
,
block_FifoGet
,
(
block_fifo_t
*
)
);
VLC_EXPORT
(
block_t
*
,
block_FifoShow
,
(
block_fifo_t
*
)
);
VLC_EXPORT
(
block_t
*
,
block_FifoShow
,
(
block_fifo_t
*
)
);
VLC_EXPORT
(
size_t
,
block_FifoSize
,
(
const
block_fifo_t
*
p_fifo
)
);
VLC_EXPORT
(
size_t
,
block_FifoCount
,
(
const
block_fifo_t
*
p_fifo
)
);
#endif
/* VLC_BLOCK_H */
#endif
/* VLC_BLOCK_H */
src/libvlc.sym
View file @
3110a86a
...
@@ -70,6 +70,8 @@ __block_FifoNew
...
@@ -70,6 +70,8 @@ __block_FifoNew
block_FifoPut
block_FifoPut
block_FifoRelease
block_FifoRelease
block_FifoShow
block_FifoShow
block_FifoCount
block_FifoSize
__block_New
__block_New
block_Realloc
block_Realloc
config_ChainCreate
config_ChainCreate
...
...
src/misc/block.c
View file @
3110a86a
...
@@ -155,6 +155,19 @@ static void BlockRelease( block_t *p_block )
...
@@ -155,6 +155,19 @@ static void BlockRelease( block_t *p_block )
/*****************************************************************************
/*****************************************************************************
* block_fifo_t management
* 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;
block_t *p_first;
block_t **pp_last;
int i_size;
};
#endif
block_fifo_t
*
__block_FifoNew
(
vlc_object_t
*
p_obj
)
block_fifo_t
*
__block_FifoNew
(
vlc_object_t
*
p_obj
)
{
{
block_fifo_t
*
p_fifo
;
block_fifo_t
*
p_fifo
;
...
@@ -269,6 +282,14 @@ block_t *block_FifoShow( block_fifo_t *p_fifo )
...
@@ -269,6 +282,14 @@ block_t *block_FifoShow( block_fifo_t *p_fifo )
vlc_mutex_unlock
(
&
p_fifo
->
lock
);
vlc_mutex_unlock
(
&
p_fifo
->
lock
);
return
(
b
);
return
(
b
);
}
size_t
block_FifoSize
(
const
block_fifo_t
*
p_fifo
)
{
return
p_fifo
->
i_size
;
}
}
size_t
block_FifoCount
(
const
block_fifo_t
*
p_fifo
)
{
return
p_fifo
->
i_depth
;
}
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