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
d5f2ec0d
Commit
d5f2ec0d
authored
Nov 02, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use var_CreateGet oly to Create the variable.
parent
af630314
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
modules/audio_filter/equalizer.c
modules/audio_filter/equalizer.c
+1
-1
modules/audio_filter/spatializer/spatializer.cpp
modules/audio_filter/spatializer/spatializer.cpp
+2
-3
modules/video_filter/colorthres.c
modules/video_filter/colorthres.c
+3
-3
No files found.
modules/audio_filter/equalizer.c
View file @
d5f2ec0d
...
@@ -363,7 +363,7 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate )
...
@@ -363,7 +363,7 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate )
p_sys
->
b_2eqz
=
var_CreateGetBool
(
p_aout
,
"equalizer-2pass"
);
p_sys
->
b_2eqz
=
var_CreateGetBool
(
p_aout
,
"equalizer-2pass"
);
var_Create
GetFloat
(
p_aout
,
"equalizer-preamp"
);
var_Create
(
p_aout
,
"equalizer-preamp"
,
VLC_VAR_FLOAT
|
VLC_VAR_DOINHERIT
);
/* Get initial values */
/* Get initial values */
var_Get
(
p_aout
,
"equalizer-preset"
,
&
val1
);
var_Get
(
p_aout
,
"equalizer-preset"
,
&
val1
);
...
...
modules/audio_filter/spatializer/spatializer.cpp
View file @
d5f2ec0d
...
@@ -209,9 +209,8 @@ static int SpatInit( aout_filter_t *p_filter )
...
@@ -209,9 +209,8 @@ static int SpatInit( aout_filter_t *p_filter )
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
p_filter
->
p_parent
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
p_filter
->
p_parent
;
for
(
i
=
0
;
i
<
5
;
i
++
)
for
(
i
=
0
;
i
<
5
;
i
++
)
{
var_Create
(
p_aout
,
psz_control_names
[
i
],
VLC_VAR_FLOAT
var_CreateGetFloatCommand
(
p_aout
,
psz_control_names
[
i
]
);
|
VLC_VAR_DOINHERIT
|
VLC_VAR_ISCOMMAND
);
}
/* Get initial values */
/* Get initial values */
var_Get
(
p_aout
,
psz_control_names
[
0
],
&
val1
);
var_Get
(
p_aout
,
psz_control_names
[
0
],
&
val1
);
...
...
modules/video_filter/colorthres.c
View file @
d5f2ec0d
...
@@ -119,9 +119,9 @@ static int Create( vlc_object_t *p_this )
...
@@ -119,9 +119,9 @@ static int Create( vlc_object_t *p_this )
config_ChainParse
(
p_filter
,
CFG_PREFIX
,
ppsz_filter_options
,
config_ChainParse
(
p_filter
,
CFG_PREFIX
,
ppsz_filter_options
,
p_filter
->
p_cfg
);
p_filter
->
p_cfg
);
var_Create
GetIntegerCommand
(
p_filter
,
CFG_PREFIX
"color"
);
var_Create
(
p_filter
,
CFG_PREFIX
"color"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
|
VLC_VAR_ISCOMMAND
);
var_Create
GetIntegerCommand
(
p_filter
,
CFG_PREFIX
"similaritythres"
);
var_Create
(
p_filter
,
CFG_PREFIX
"similaritythres"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
|
VLC_VAR_ISCOMMAND
);
var_Create
GetIntegerCommand
(
p_filter
,
CFG_PREFIX
"saturationthres"
);
var_Create
(
p_filter
,
CFG_PREFIX
"saturationthes"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
|
VLC_VAR_ISCOMMAND
);
/* Allocate structure */
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
...
...
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