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
859847f1
Commit
859847f1
authored
Dec 12, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix equalizer initialization
Close #5956
parent
0e26bab0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
15 deletions
+11
-15
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+8
-12
modules/gui/qt4/ui/equalizer.ui
modules/gui/qt4/ui/equalizer.ui
+3
-3
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
859847f1
...
...
@@ -992,24 +992,20 @@ void Equalizer::updateUIFromCore()
if
(
p_aout
)
{
psz_af
=
var_GetNonEmptyString
(
p_aout
,
"audio-filter"
);
psz_pres
=
var_GetString
(
p_aout
,
"equalizer-preset"
);
if
(
var_GetBool
(
p_aout
,
"equalizer-2pass"
)
)
ui
.
eq2PassCheck
->
setChecked
(
true
);
f_preamp
=
var_GetFloat
(
p_aout
,
"equalizer-preamp"
);
psz_bands
=
var_GetNonEmptyString
(
p_aout
,
"equalizer-bands"
);
i_preset
=
presetsComboBox
->
findData
(
QVariant
(
psz_pres
)
);
vlc_object_release
(
p_aout
);
}
else
{
psz_af
=
config_GetPsz
(
p_intf
,
"audio-filter"
);
psz_pres
=
config_GetPsz
(
p_intf
,
"equalizer-preset"
);
if
(
config_GetInt
(
p_intf
,
"equalizer-2pass"
)
)
ui
.
eq2PassCheck
->
setChecked
(
true
);
f_preamp
=
config_GetFloat
(
p_intf
,
"equalizer-preamp"
);
psz_bands
=
config_GetPsz
(
p_intf
,
"equalizer-bands"
);
i_preset
=
presetsComboBox
->
findData
(
QVariant
(
psz_pres
)
);
}
psz_pres
=
var_InheritString
(
p_aout
,
"equalizer-preset"
);
if
(
var_InheritBool
(
p_aout
,
"equalizer-2pass"
)
)
ui
.
eq2PassCheck
->
setChecked
(
true
);
f_preamp
=
var_InheritFloat
(
p_aout
,
"equalizer-preamp"
);
psz_bands
=
var_InheritString
(
p_aout
,
"equalizer-bands"
);
i_preset
=
presetsComboBox
->
findData
(
QVariant
(
psz_pres
)
);
if
(
psz_af
&&
strstr
(
psz_af
,
"equalizer"
)
!=
NULL
)
ui
.
enableCheck
->
setChecked
(
true
);
enable
(
ui
.
enableCheck
->
isChecked
()
);
...
...
modules/gui/qt4/ui/equalizer.ui
View file @
859847f1
...
...
@@ -79,12 +79,12 @@
<property
name=
"maximum"
>
<number>
400
</number>
</property>
<property
name=
"value"
>
<number>
320
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"invertedAppearance"
>
<bool>
false
</bool>
</property>
</widget>
</item>
<item
row=
"1"
column=
"2"
rowspan=
"2"
>
...
...
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