Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
447b4ce7
Commit
447b4ce7
authored
May 09, 2005
by
dionoea
Browse files
fix a segfault (i didn't know strstr segfaulted when the haystak was NULL ...)
parent
7189e5d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/wxwindows/extrapanel.cpp
View file @
447b4ce7
...
...
@@ -546,7 +546,7 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
char
*
psz_af
;
char
*
psz_af
=
NULL
;
if
(
p_aout
)
{
psz_af
=
var_GetString
(
p_aout
,
"audio-filter"
);
...
...
@@ -559,7 +559,7 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
if
(
config_GetInt
(
p_intf
,
"equalizer-2pass"
)
)
eq_2p_chkbox
->
SetValue
(
true
);
}
if
(
strstr
(
psz_af
,
"equalizer"
)
!=
NULL
)
if
(
psz_af
!=
NULL
?
strstr
(
psz_af
,
"equalizer"
)
!=
NULL
:
VLC_FALSE
)
{
eq_chkbox
->
SetValue
(
true
);
}
else
{
...
...
Write
Preview
Supports
Markdown
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