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
c543a40d
Commit
c543a40d
authored
May 29, 2009
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx intf: Fix bug in equalizer
Introduced by [
ca17039c
]
parent
77dea4ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
modules/gui/macosx/equalizer.m
modules/gui/macosx/equalizer.m
+12
-13
No files found.
modules/gui/macosx/equalizer.m
View file @
c543a40d
...
@@ -239,18 +239,17 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -239,18 +239,17 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
if
(
p_object
==
NULL
)
if
(
p_object
==
NULL
)
p_object
=
(
vlc_object_t
*
)
pl_Hold
(
p_intf
);
p_object
=
(
vlc_object_t
*
)
pl_Hold
(
p_intf
);
NSString
*
preset
;
const
char
*
psz_values
;
const
char
*
psz_values
;
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band1
floatValue
]
];
NSString
*
preset
=
[
NSString
stringWithFormat
:
@"%.1f"
,
[
o_slider_band1
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band2
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
[
o_slider_band2
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band3
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
[
o_slider_band3
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band4
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
[
o_slider_band4
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band5
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
[
o_slider_band5
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band6
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
[
o_slider_band6
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band7
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
[
o_slider_band7
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band8
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
[
o_slider_band8
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band9
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
[
o_slider_band9
floatValue
]
];
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
[
o_slider_band10
floatValue
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f"
,
[
o_slider_band10
floatValue
]
];
psz_values
=
[
preset
UTF8String
];
psz_values
=
[
preset
UTF8String
];
var_SetString
(
p_object
,
"equalizer-bands"
,
psz_values
);
var_SetString
(
p_object
,
"equalizer-bands"
,
psz_values
);
...
@@ -278,11 +277,11 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -278,11 +277,11 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
var_SetString
(
p_object
,
"equalizer-preset"
,
preset_list
[[
sender
indexOfSelectedItem
]]
);
var_SetString
(
p_object
,
"equalizer-preset"
,
preset_list
[[
sender
indexOfSelectedItem
]]
);
NSString
*
preset
;
NSString
*
preset
=
@""
;
const
char
*
psz_values
;
const
char
*
psz_values
;
for
(
i
=
0
;
i
<
10
;
i
++
)
for
(
i
=
0
;
i
<
10
;
i
++
)
{
{
preset
=
[
NSString
stringWithFormat
:
@"%@ %.1f"
,
preset
,
eqz_preset_10b
[[
sender
indexOfSelectedItem
]]
->
f_amp
[
i
]
];
preset
=
[
preset
stringByAppendingFormat
:
@"%.1f "
,
eqz_preset_10b
[[
sender
indexOfSelectedItem
]]
->
f_amp
[
i
]
];
}
}
psz_values
=
[
preset
UTF8String
];
psz_values
=
[
preset
UTF8String
];
var_SetString
(
p_object
,
"equalizer-bands"
,
psz_values
);
var_SetString
(
p_object
,
"equalizer-bands"
,
psz_values
);
...
...
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