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
68d7d122
Commit
68d7d122
authored
Apr 03, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
equalizer: fix crash and allow custom eq-band values without known preset
close #8307
parent
13db37f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
modules/audio_filter/equalizer.c
modules/audio_filter/equalizer.c
+9
-6
No files found.
modules/audio_filter/equalizer.c
View file @
68d7d122
...
...
@@ -352,6 +352,8 @@ static int EqzInit( filter_t *p_filter, int i_rate )
}
}
p_sys
->
psz_newbands
=
NULL
;
var_Create
(
p_aout
,
"equalizer-bands"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_aout
,
"equalizer-preset"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
...
...
@@ -372,10 +374,8 @@ static int EqzInit( filter_t *p_filter, int i_rate )
free
(
val1
.
psz_string
);
/* Register preset bands (for intf) if : */
/* We have no bands info --> the preset info must be given to the intf */
/* or The bands info matches the preset */
if
(
p_sys
->
psz_newbands
==
NULL
)
/* Exit if we have no preset and no bands value */
if
(
p_sys
->
psz_newbands
==
NULL
&&
(
!
val2
.
psz_string
||
!*
val2
.
psz_string
))
{
msg_Err
(
p_filter
,
"No preset selected"
);
free
(
val2
.
psz_string
);
...
...
@@ -383,7 +383,10 @@ static int EqzInit( filter_t *p_filter, int i_rate )
i_ret
=
VLC_EGENERIC
;
goto
error
;
}
if
(
(
*
(
val2
.
psz_string
)
&&
/* Register preset bands (for intf) if : */
/* We have no bands info --> the preset info must be given to the intf */
/* or The bands info matches the preset */
if
(
(
p_sys
->
psz_newbands
&&
*
(
val2
.
psz_string
)
&&
strstr
(
p_sys
->
psz_newbands
,
val2
.
psz_string
)
)
||
!*
val2
.
psz_string
)
{
var_SetString
(
p_aout
,
"equalizer-bands"
,
p_sys
->
psz_newbands
);
...
...
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