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
d492c369
Commit
d492c369
authored
Apr 16, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiobargraph_a: some bool variables use integer type
We can't modify it without breaking existing setups
parent
896bc257
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/audio_filter/audiobargraph_a.c
modules/audio_filter/audiobargraph_a.c
+6
-6
No files found.
modules/audio_filter/audiobargraph_a.c
View file @
d492c369
...
...
@@ -75,9 +75,9 @@ vlc_module_begin ()
add_obsolete_string
(
CFG_PREFIX
"address"
)
add_obsolete_integer
(
CFG_PREFIX
"port"
)
add_integer
(
CFG_PREFIX
"bargraph"
,
1
,
BARGRAPH_TEXT
,
BARGRAPH_LONGTEXT
,
false
)
add_integer
(
CFG_PREFIX
"bargraph"
,
1
,
BARGRAPH_TEXT
,
BARGRAPH_LONGTEXT
,
false
)
// FIXME: this is a bool
add_integer
(
CFG_PREFIX
"bargraph_repetition"
,
4
,
BARGRAPH_REPETITION_TEXT
,
BARGRAPH_REPETITION_LONGTEXT
,
false
)
add_integer
(
CFG_PREFIX
"silence"
,
1
,
SILENCE_TEXT
,
SILENCE_LONGTEXT
,
false
)
add_integer
(
CFG_PREFIX
"silence"
,
1
,
SILENCE_TEXT
,
SILENCE_LONGTEXT
,
false
)
// FIXME: this is a bool
add_integer
(
CFG_PREFIX
"time_window"
,
5000
,
TIME_WINDOW_TEXT
,
TIME_WINDOW_LONGTEXT
,
false
)
add_float
(
CFG_PREFIX
"alarm_threshold"
,
0
.
1
,
ALARM_THRESHOLD_TEXT
,
ALARM_THRESHOLD_LONGTEXT
,
false
)
add_integer
(
CFG_PREFIX
"repetition_time"
,
2000
,
REPETITION_TIME_TEXT
,
REPETITION_TIME_LONGTEXT
,
false
)
...
...
@@ -94,9 +94,9 @@ typedef struct ValueDate_t {
struct
filter_sys_t
{
int
bargraph
;
bool
bargraph
;
int
bargraph_repetition
;
int
silence
;
bool
silence
;
int64_t
time_window
;
float
alarm_threshold
;
int64_t
repetition_time
;
...
...
@@ -117,9 +117,9 @@ static int Open( vlc_object_t *p_this )
if
(
!
p_sys
)
return
VLC_ENOMEM
;
p_sys
->
bargraph
=
var_CreateGetInteger
(
p_filter
,
CFG_PREFIX
"bargraph"
);
p_sys
->
bargraph
=
!!
var_CreateGetInteger
(
p_filter
,
CFG_PREFIX
"bargraph"
);
p_sys
->
bargraph_repetition
=
var_CreateGetInteger
(
p_filter
,
CFG_PREFIX
"bargraph_repetition"
);
p_sys
->
silence
=
var_CreateGetInteger
(
p_filter
,
CFG_PREFIX
"silence"
);
p_sys
->
silence
=
!!
var_CreateGetInteger
(
p_filter
,
CFG_PREFIX
"silence"
);
p_sys
->
time_window
=
var_CreateGetInteger
(
p_filter
,
CFG_PREFIX
"time_window"
)
*
1000
;
p_sys
->
alarm_threshold
=
var_CreateGetFloat
(
p_filter
,
CFG_PREFIX
"alarm_threshold"
);
p_sys
->
repetition_time
=
var_CreateGetInteger
(
p_filter
,
CFG_PREFIX
"repetition_time"
)
*
1000
;
...
...
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