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
0b5502c3
Commit
0b5502c3
authored
Aug 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove filter_chain_GetFilter: unused and not thread-safe
parent
489a320c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
42 deletions
+0
-42
include/vlc_filter.h
include/vlc_filter.h
+0
-10
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/misc/filter_chain.c
src/misc/filter_chain.c
+0
-31
No files found.
include/vlc_filter.h
View file @
0b5502c3
...
...
@@ -299,16 +299,6 @@ VLC_EXPORT( int, filter_chain_AppendFromString, ( filter_chain_t *, const char *
*/
VLC_EXPORT
(
int
,
filter_chain_DeleteFilter
,
(
filter_chain_t
*
,
filter_t
*
)
);
/**
* Get filter by name of position in the filter chain.
*
* \param p_chain pointer to filter chain
* \param i_position position of filter in filter chain
* \param psz_name name of filter to get
* \return filter object based on position or name provided
*/
VLC_EXPORT
(
filter_t
*
,
filter_chain_GetFilter
,
(
filter_chain_t
*
,
int
,
const
char
*
)
);
/**
* Get the number of filters in the filter chain.
*
...
...
src/libvlccore.sym
View file @
0b5502c3
...
...
@@ -124,7 +124,6 @@ filter_chain_AppendFromString
filter_chain_AudioFilter
filter_chain_Delete
filter_chain_DeleteFilter
filter_chain_GetFilter
filter_chain_GetFmtOut
filter_chain_GetLength
filter_chain_MouseFilter
...
...
src/misc/filter_chain.c
View file @
0b5502c3
...
...
@@ -201,37 +201,6 @@ int filter_chain_DeleteFilter( filter_chain_t *p_chain, filter_t *p_filter )
return
UpdateBufferFunctions
(
p_chain
);
}
/**
* Reading from the filter chain
*/
filter_t
*
filter_chain_GetFilter
(
filter_chain_t
*
p_chain
,
int
i_position
,
const
char
*
psz_name
)
{
if
(
psz_name
)
{
if
(
i_position
<
0
)
return
NULL
;
for
(
int
i
=
0
;
i
<
vlc_array_count
(
&
p_chain
->
filters
);
i
++
)
{
filter_t
*
p_filter
=
vlc_array_item_at_index
(
&
p_chain
->
filters
,
i
);
if
(
!
strcmp
(
p_filter
->
psz_object_name
,
psz_name
)
)
{
if
(
i_position
<=
0
)
return
p_filter
;
i_position
--
;
}
}
return
NULL
;
}
else
{
if
(
i_position
<
0
||
i_position
>=
vlc_array_count
(
&
p_chain
->
filters
)
)
return
NULL
;
return
vlc_array_item_at_index
(
&
p_chain
->
filters
,
i_position
);
}
}
int
filter_chain_GetLength
(
filter_chain_t
*
p_chain
)
{
return
vlc_array_count
(
&
p_chain
->
filters
);
...
...
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