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
7d723b44
Commit
7d723b44
authored
Jun 14, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to fix crashes on the extended panel.
parent
5dd166ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+11
-6
modules/gui/qt4/dialogs/extended.cpp
modules/gui/qt4/dialogs/extended.cpp
+2
-0
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
7d723b44
...
...
@@ -941,7 +941,7 @@ void Equalizer::setBand()
for
(
int
i
=
0
;
i
<
BANDS
;
i
++
)
{
char
psz_val
[
5
];
char
psz_val
[
8
];
float
f_val
=
(
float
)(
bands
[
i
]
->
value
()
)
/
10
-
20
;
sprintf
(
psz_values
,
"%s %f"
,
psz_values
,
f_val
);
sprintf
(
psz_val
,
"% 5.1f"
,
f_val
);
...
...
@@ -962,9 +962,9 @@ void Equalizer::setValues( char *psz_bands, float f_preamp )
char
*
p
=
psz_bands
;
if
(
p
)
{
for
(
int
i
=
0
;
i
<
10
;
i
++
)
for
(
int
i
=
0
;
i
<
BANDS
;
i
++
)
{
char
psz_val
[
5
];
char
psz_val
[
8
];
float
f
=
strtof
(
p
,
&
p
);
int
i_val
=
(
int
)(
(
f
+
20
)
*
10
);
bands
[
i
]
->
setValue
(
i_val
);
...
...
@@ -989,9 +989,14 @@ void Equalizer::setPreset( int preset )
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
char
psz_values
[
102
];
memset
(
psz_values
,
0
,
102
);
for
(
int
i
=
0
;
i
<
10
;
i
++
)
sprintf
(
psz_values
,
"%s %.1f"
,
psz_values
,
eqz_preset_10b
[
preset
]
->
f_amp
[
i
]
);
char
psz_values2
[
102
];
memset
(
psz_values2
,
0
,
102
);
for
(
int
i
=
0
;
i
<
BANDS
;
i
++
)
{
strcpy
(
psz_values2
,
psz_values
);
sprintf
(
psz_values
,
"%s %5.1f"
,
psz_values2
,
eqz_preset_10b
[
preset
]
->
f_amp
[
i
]
);
}
if
(
p_aout
)
{
...
...
modules/gui/qt4/dialogs/extended.cpp
View file @
7d723b44
...
...
@@ -41,6 +41,8 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
setWindowTitle
(
qtr
(
"Adjustments and Effects"
)
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
layout
->
setLayoutMargins
(
0
,
2
,
0
,
1
,
1
);
layout
->
setSpacing
(
3
);
QTabWidget
*
mainTabW
=
new
QTabWidget
(
this
);
...
...
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