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
1e57497a
Commit
1e57497a
authored
Apr 16, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiobargraph_a: cosmetics
parent
fd18a305
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
modules/audio_filter/audiobargraph_a.c
modules/audio_filter/audiobargraph_a.c
+13
-13
No files found.
modules/audio_filter/audiobargraph_a.c
View file @
1e57497a
...
...
@@ -113,16 +113,16 @@ struct filter_sys_t
static
int
Open
(
vlc_object_t
*
p_this
)
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
if
(
!
p_sys
)
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
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
->
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
;
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
->
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
;
p_sys
->
counter
=
0
;
p_sys
->
first
=
NULL
;
p_sys
->
last
=
NULL
;
...
...
@@ -133,8 +133,8 @@ static int Open( vlc_object_t *p_this )
p_filter
->
fmt_out
.
audio
=
p_filter
->
fmt_in
.
audio
;
p_filter
->
pf_audio_filter
=
DoWork
;
var_Create
(
p_filter
->
p_libvlc
,
"audiobargraph_v-alarm"
,
VLC_VAR_BOOL
);
var_Create
(
p_filter
->
p_libvlc
,
"audiobargraph_v-i_values"
,
VLC_VAR_STRING
);
var_Create
(
p_filter
->
p_libvlc
,
"audiobargraph_v-alarm"
,
VLC_VAR_BOOL
);
var_Create
(
p_filter
->
p_libvlc
,
"audiobargraph_v-i_values"
,
VLC_VAR_STRING
);
return
VLC_SUCCESS
;
}
...
...
@@ -243,13 +243,13 @@ static void Close( vlc_object_t *p_this )
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
var_Destroy
(
p_filter
->
p_libvlc
,
"audiobargraph_v-i_values"
);
var_Destroy
(
p_filter
->
p_libvlc
,
"audiobargraph_v-alarm"
);
var_Destroy
(
p_filter
->
p_libvlc
,
"audiobargraph_v-i_values"
);
var_Destroy
(
p_filter
->
p_libvlc
,
"audiobargraph_v-alarm"
);
while
(
p_sys
->
first
!=
NULL
)
{
ValueDate_t
*
current
=
p_sys
->
first
;
p_sys
->
first
=
p_sys
->
first
->
next
;
free
(
current
);
}
free
(
p_sys
);
free
(
p_sys
);
}
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