Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3daab2d0
Commit
3daab2d0
authored
Jan 28, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn inheriting a value from an object outside of the object tree
parent
f6f1fa0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/misc/variables.c
src/misc/variables.c
+19
-0
No files found.
src/misc/variables.c
View file @
3daab2d0
...
@@ -1220,10 +1220,29 @@ static void CheckValue ( variable_t *p_var, vlc_value_t *p_val )
...
@@ -1220,10 +1220,29 @@ static void CheckValue ( variable_t *p_var, vlc_value_t *p_val )
int
var_Inherit
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
int
i_type
,
int
var_Inherit
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
int
i_type
,
vlc_value_t
*
p_val
)
vlc_value_t
*
p_val
)
{
{
#ifndef NDEBUG
if
(
p_this
!=
VLC_OBJECT
(
p_this
->
p_libvlc
)
&&
unlikely
(
p_this
->
p_parent
==
NULL
))
{
msg_Info
(
p_this
,
"%s(%s) on detached object"
,
__func__
,
psz_name
);
//vlc_backtrace ();
}
#endif
i_type
&=
VLC_VAR_CLASS
;
i_type
&=
VLC_VAR_CLASS
;
for
(
vlc_object_t
*
obj
=
p_this
;
obj
!=
NULL
;
obj
=
obj
->
p_parent
)
for
(
vlc_object_t
*
obj
=
p_this
;
obj
!=
NULL
;
obj
=
obj
->
p_parent
)
{
if
(
var_GetChecked
(
obj
,
psz_name
,
i_type
,
p_val
)
==
VLC_SUCCESS
)
if
(
var_GetChecked
(
obj
,
psz_name
,
i_type
,
p_val
)
==
VLC_SUCCESS
)
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
#ifndef NDEBUG
if
(
obj
!=
p_this
&&
obj
!=
VLC_OBJECT
(
p_this
->
p_libvlc
)
&&
unlikely
(
obj
->
p_parent
==
NULL
))
{
msg_Info
(
p_this
,
"%s(%s) on detached tree [%p] %s"
,
__func__
,
psz_name
,
obj
,
obj
->
psz_object_type
);
//vlc_backtrace ();
}
#endif
}
/* else take value from config */
/* else take value from config */
switch
(
i_type
&
VLC_VAR_CLASS
)
switch
(
i_type
&
VLC_VAR_CLASS
)
...
...
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