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
13d0590b
Commit
13d0590b
authored
Apr 16, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiobargraph_v: cosmetics
parent
8abe10b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
modules/video_filter/audiobargraph_v.c
modules/video_filter/audiobargraph_v.c
+3
-5
No files found.
modules/video_filter/audiobargraph_v.c
View file @
13d0590b
...
@@ -571,8 +571,8 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
...
@@ -571,8 +571,8 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
{
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
oldval
);
filter_sys_t
*
p_sys
=
(
filter_sys_t
*
)
p_data
;
filter_sys_t
*
p_sys
=
p_data
;
BarGraph_t
*
p_BarGraph
=
&
(
p_sys
->
p_BarGraph
)
;
BarGraph_t
*
p_BarGraph
=
&
p_sys
->
p_BarGraph
;
char
*
res
=
NULL
;
char
*
res
=
NULL
;
vlc_mutex_lock
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
...
@@ -592,12 +592,10 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
...
@@ -592,12 +592,10 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
char
*
psz
=
xstrdup
(
newval
.
psz_string
?
newval
.
psz_string
:
""
);
char
*
psz
=
xstrdup
(
newval
.
psz_string
?
newval
.
psz_string
:
""
);
free
(
p_BarGraph
->
i_values
);
free
(
p_BarGraph
->
i_values
);
//p_BarGraph->i_values = NULL;
//p_BarGraph->nbChannels = 0;
// in case many answer are received at the same time, only keep one
// in case many answer are received at the same time, only keep one
res
=
strchr
(
psz
,
'@'
);
res
=
strchr
(
psz
,
'@'
);
if
(
res
)
if
(
res
)
*
res
=
0
;
*
res
=
'\0'
;
parse_i_values
(
p_BarGraph
,
psz
);
parse_i_values
(
p_BarGraph
,
psz
);
free
(
psz
);
free
(
psz
);
LoadBarGraph
(
p_this
,
p_BarGraph
);
LoadBarGraph
(
p_this
,
p_BarGraph
);
...
...
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