Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
3886a791
Commit
3886a791
authored
Aug 15, 2006
by
ipkiss
Browse files
* skins2/src/skin_main.cpp: Fixed a crash in the preferences, reported by Trax
parent
62f073c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins2/src/skin_main.cpp
View file @
3886a791
...
...
@@ -365,16 +365,20 @@ static int onSystrayChange( vlc_object_t *pObj, const char *pVariable,
return
VLC_EGENERIC
;
}
AsyncQueue
*
pQueue
=
AsyncQueue
::
instance
(
pIntf
);
if
(
newVal
.
b_bool
)
// Check that we found the correct interface (same check as for the demux)
if
(
var_Type
(
pIntf
,
"skin-to-load"
)
==
VLC_VAR_STRING
)
{
CmdAddInTray
*
pCmd
=
new
CmdAddInTray
(
pIntf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
}
else
{
CmdRemoveFromTray
*
pCmd
=
new
CmdRemoveFromTray
(
pIntf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
AsyncQueue
*
pQueue
=
AsyncQueue
::
instance
(
pIntf
);
if
(
newVal
.
b_bool
)
{
CmdAddInTray
*
pCmd
=
new
CmdAddInTray
(
pIntf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
}
else
{
CmdRemoveFromTray
*
pCmd
=
new
CmdRemoveFromTray
(
pIntf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
}
}
vlc_object_release
(
pIntf
);
...
...
@@ -395,16 +399,20 @@ static int onTaskBarChange( vlc_object_t *pObj, const char *pVariable,
return
VLC_EGENERIC
;
}
AsyncQueue
*
pQueue
=
AsyncQueue
::
instance
(
pIntf
);
if
(
newVal
.
b_bool
)
// Check that we found the correct interface (same check as for the demux)
if
(
var_Type
(
pIntf
,
"skin-to-load"
)
==
VLC_VAR_STRING
)
{
CmdAddInTaskBar
*
pCmd
=
new
CmdAddInTaskBar
(
pIntf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
}
else
{
CmdRemoveFromTaskBar
*
pCmd
=
new
CmdRemoveFromTaskBar
(
pIntf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
AsyncQueue
*
pQueue
=
AsyncQueue
::
instance
(
pIntf
);
if
(
newVal
.
b_bool
)
{
CmdAddInTaskBar
*
pCmd
=
new
CmdAddInTaskBar
(
pIntf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
}
else
{
CmdRemoveFromTaskBar
*
pCmd
=
new
CmdRemoveFromTaskBar
(
pIntf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
}
}
vlc_object_release
(
pIntf
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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