Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
0a592271
Commit
0a592271
authored
Jul 28, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter_chain: add filter_chain_ForEach() helper
parent
06336296
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
include/vlc_filter.h
include/vlc_filter.h
+3
-0
src/misc/filter_chain.c
src/misc/filter_chain.c
+12
-0
No files found.
include/vlc_filter.h
View file @
0a592271
...
...
@@ -428,5 +428,8 @@ VLC_API int filter_chain_MouseFilter( filter_chain_t *, vlc_mouse_t *, const vlc
*/
VLC_API
int
filter_chain_MouseEvent
(
filter_chain_t
*
,
const
vlc_mouse_t
*
,
const
video_format_t
*
);
int
filter_chain_ForEach
(
filter_chain_t
*
chain
,
int
(
*
cb
)(
filter_t
*
,
void
*
),
void
*
opaque
);
#endif
/* _VLC_FILTER_H */
src/misc/filter_chain.c
View file @
0a592271
...
...
@@ -236,6 +236,18 @@ int filter_chain_DeleteFilter( filter_chain_t *p_chain, filter_t *p_filter )
return
UpdateBufferFunctions
(
p_chain
);
}
int
filter_chain_ForEach
(
filter_chain_t
*
chain
,
int
(
*
cb
)(
filter_t
*
,
void
*
),
void
*
opaque
)
{
for
(
chained_filter_t
*
f
=
chain
->
first
;
f
!=
NULL
;
f
=
f
->
next
)
{
int
ret
=
cb
(
&
f
->
filter
,
opaque
);
if
(
ret
)
return
ret
;
}
return
VLC_SUCCESS
;
}
int
filter_chain_GetLength
(
filter_chain_t
*
p_chain
)
{
return
p_chain
->
length
;
...
...
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