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
d1503b12
Commit
d1503b12
authored
Sep 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix memleaks
parent
d3a53d25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+7
-5
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
d1503b12
...
@@ -604,15 +604,15 @@ Equalizer::Equalizer( intf_thread_t *_p_intf, QWidget *_parent ) :
...
@@ -604,15 +604,15 @@ Equalizer::Equalizer( intf_thread_t *_p_intf, QWidget *_parent ) :
/* Write down initial values */
/* Write down initial values */
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
char
*
psz_af
=
NULL
;
char
*
psz_af
;
char
*
psz_bands
;
char
*
psz_bands
;
float
f_preamp
;
float
f_preamp
;
if
(
p_aout
)
if
(
p_aout
)
{
{
psz_af
=
var_GetString
(
p_aout
,
"audio-filter"
);
psz_af
=
var_Get
NonEmpty
String
(
p_aout
,
"audio-filter"
);
if
(
var_GetBool
(
p_aout
,
"equalizer-2pass"
)
)
if
(
var_GetBool
(
p_aout
,
"equalizer-2pass"
)
)
ui
.
eq2PassCheck
->
setChecked
(
true
);
ui
.
eq2PassCheck
->
setChecked
(
true
);
psz_bands
=
var_GetString
(
p_aout
,
"equalizer-bands"
);
psz_bands
=
var_Get
NonEmpty
String
(
p_aout
,
"equalizer-bands"
);
f_preamp
=
var_GetFloat
(
p_aout
,
"equalizer-preamp"
);
f_preamp
=
var_GetFloat
(
p_aout
,
"equalizer-preamp"
);
vlc_object_release
(
p_aout
);
vlc_object_release
(
p_aout
);
}
}
...
@@ -626,6 +626,7 @@ Equalizer::Equalizer( intf_thread_t *_p_intf, QWidget *_parent ) :
...
@@ -626,6 +626,7 @@ Equalizer::Equalizer( intf_thread_t *_p_intf, QWidget *_parent ) :
}
}
if
(
psz_af
&&
strstr
(
psz_af
,
"equalizer"
)
!=
NULL
)
if
(
psz_af
&&
strstr
(
psz_af
,
"equalizer"
)
!=
NULL
)
ui
.
enableCheck
->
setChecked
(
true
);
ui
.
enableCheck
->
setChecked
(
true
);
free
(
psz_af
);
enable
(
ui
.
enableCheck
->
isChecked
()
);
enable
(
ui
.
enableCheck
->
isChecked
()
);
setValues
(
psz_bands
,
f_preamp
);
setValues
(
psz_bands
,
f_preamp
);
...
@@ -849,11 +850,11 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent ) :
...
@@ -849,11 +850,11 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent ) :
/* Write down initial values */
/* Write down initial values */
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
char
*
psz_af
=
NULL
;
char
*
psz_af
;
if
(
p_aout
)
if
(
p_aout
)
{
{
psz_af
=
var_GetString
(
p_aout
,
"audio-filter"
);
psz_af
=
var_Get
NonEmpty
String
(
p_aout
,
"audio-filter"
);
for
(
int
i
=
0
;
i
<
NUM_SP_CTRL
;
i
++
)
for
(
int
i
=
0
;
i
<
NUM_SP_CTRL
;
i
++
)
{
{
controlVars
[
i
]
=
var_GetFloat
(
p_aout
,
psz_control_names
[
i
]
);
controlVars
[
i
]
=
var_GetFloat
(
p_aout
,
psz_control_names
[
i
]
);
...
@@ -870,6 +871,7 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent ) :
...
@@ -870,6 +871,7 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent ) :
}
}
if
(
psz_af
&&
strstr
(
psz_af
,
"spatializer"
)
!=
NULL
)
if
(
psz_af
&&
strstr
(
psz_af
,
"spatializer"
)
!=
NULL
)
ui
.
enableCheck
->
setChecked
(
true
);
ui
.
enableCheck
->
setChecked
(
true
);
free
(
psz_af
);
enable
(
ui
.
enableCheck
->
isChecked
()
);
enable
(
ui
.
enableCheck
->
isChecked
()
);
setValues
(
controlVars
);
setValues
(
controlVars
);
...
...
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