Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
83f79015
Commit
83f79015
authored
May 09, 2005
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix some variable initilization bugs
parent
d8f3a9ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
modules/gui/macosx/equalizer.m
modules/gui/macosx/equalizer.m
+12
-3
No files found.
modules/gui/macosx/equalizer.m
View file @
83f79015
...
...
@@ -172,21 +172,28 @@ static vlc_bool_t GetFiltersStatus( intf_thread_t *p_intf,
{
intf_thread_t
*
p_intf
=
VLCIntf
;
float
f_preamp
,
f_band
[
10
];
char
*
psz_bands
,
*
p_next
;
char
*
psz_bands
,
*
p
sz_bands_init
,
*
p
_next
;
vlc_bool_t
b_2p
;
int
i
;
vlc_bool_t
b_enabled
=
GetFiltersStatus
(
p_intf
,
"equalizer"
);
vlc_object_t
*
p_object
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
if
(
p_object
==
NULL
)
p_object
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_object
==
NULL
)
return
;
var_Create
(
p_object
,
"equalizer-preamp"
,
VLC_VAR_FLOAT
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_object
,
"equalizer-bands"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
f_preamp
=
var_GetFloat
(
p_object
,
"equalizer-preamp"
);
psz_bands
=
var_GetString
(
p_object
,
"equalizer-bands"
);
if
(
!
psz_bands
)
if
(
!
strcmp
(
psz_bands
,
""
)
)
psz_bands
=
strdup
(
"0 0 0 0 0 0 0 0 0 0"
);
b_2p
=
var_GetBool
(
p_object
,
"equalizer-2pass"
);
...
...
@@ -197,6 +204,8 @@ static vlc_bool_t GetFiltersStatus( intf_thread_t *p_intf,
[
o_slider_preamp
setFloatValue
:
f_preamp
];
/* Set the bands slider */
psz_bands_init
=
psz_bands
;
for
(
i
=
0
;
i
<
10
;
i
++
)
{
/* Read dB -20/20 */
...
...
@@ -210,7 +219,7 @@ static vlc_bool_t GetFiltersStatus( intf_thread_t *p_intf,
if
(
!*
psz_bands
)
break
;
/* end of line */
psz_bands
=
p_next
+
1
;
}
free
(
psz_bands
);
free
(
psz_bands
_init
);
[
o_slider_band1
setFloatValue
:
f_band
[
0
]];
[
o_slider_band2
setFloatValue
:
f_band
[
1
]];
...
...
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