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
edada22b
Commit
edada22b
authored
Apr 07, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: inline one function and simplify
parent
e911cf1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
src/audio_output/filters.c
src/audio_output/filters.c
+7
-18
No files found.
src/audio_output/filters.c
View file @
edada22b
...
...
@@ -250,12 +250,6 @@ error:
#define aout_FiltersPipelineCreate(obj,f,n,m,i,o) \
aout_FiltersPipelineCreate(VLC_OBJECT(obj),f,n,m,i,o)
static
inline
bool
ChangeFiltersString
(
vlc_object_t
*
aout
,
const
char
*
var
,
const
char
*
filter
,
bool
add
)
{
return
aout_ChangeFilterString
(
aout
,
aout
,
var
,
filter
,
add
);
}
/**
* Filters an audio buffer through a chain of filters.
*/
...
...
@@ -300,26 +294,21 @@ static int VisualizationCallback (vlc_object_t *obj, const char *var,
return
VLC_SUCCESS
;
}
static
int
EqualizerCallback
(
vlc_object_t
*
obj
,
c
har
const
*
var
,
static
int
EqualizerCallback
(
vlc_object_t
*
obj
,
c
onst
char
*
var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
data
)
{
audio_output_t
*
aout
=
(
audio_output_t
*
)
obj
;
char
*
mode
=
newval
.
psz_string
;
bool
ret
;
const
char
*
val
=
newval
.
psz_string
;
if
(
!*
mode
)
ret
=
ChangeFiltersString
(
obj
,
"audio-filter"
,
"equalizer"
,
false
);
else
if
(
*
val
)
{
var_Create
(
obj
,
"equalizer-preset"
,
VLC_VAR_STRING
);
var_SetString
(
obj
,
"equalizer-preset"
,
mode
);
ret
=
ChangeFiltersString
(
obj
,
"audio-filter"
,
"equalizer"
,
true
);
var_SetString
(
obj
,
"equalizer-preset"
,
val
);
}
/* That sucks */
if
(
ret
)
aout_InputRequestRestart
(
aout
);
if
(
aout_ChangeFilterString
(
obj
,
obj
,
"audio-filter"
,
"equalizer"
,
*
val
))
aout_InputRequestRestart
((
audio_output_t
*
)
obj
);
/* <- That sucks! */
(
void
)
var
;
(
void
)
oldval
;
(
void
)
data
;
return
VLC_SUCCESS
;
}
...
...
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