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
GSoC
GSoC2018
macOS
vlc
Commits
2a2b6acc
Commit
2a2b6acc
authored
Dec 16, 2005
by
dionoea
Browse files
add vlc_object_exist rpn function that checks if an object of ST(1) type exists
parent
28f1eebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/http/rpn.c
View file @
2a2b6acc
...
...
@@ -750,6 +750,21 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
if
(
b_need_release
&&
p_object
!=
NULL
)
vlc_object_release
(
p_object
);
}
else
if
(
!
strcmp
(
s
,
"vlc_object_exists"
)
)
{
char
*
psz_object
=
E_
(
SSPop
)(
st
);
vlc_bool_t
b_need_release
;
vlc_object_t
*
p_object
=
GetVLCObject
(
p_intf
,
psz_object
,
&
b_need_release
);
if
(
b_need_release
&&
p_object
!=
NULL
)
vlc_object_release
(
p_object
);
if
(
p_object
!=
NULL
)
E_
(
SSPush
)(
st
,
"1"
);
else
E_
(
SSPush
)(
st
,
"0"
);
}
else
if
(
!
strcmp
(
s
,
"vlc_config_set"
)
)
{
char
*
psz_variable
=
E_
(
SSPop
)(
st
);
...
...
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