Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c1f4a7df
Commit
c1f4a7df
authored
Dec 29, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inherit from parent only, not from LibVLC
parent
c8fbeb15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
src/misc/variables.c
src/misc/variables.c
+6
-15
No files found.
src/misc/variables.c
View file @
c1f4a7df
...
...
@@ -1423,8 +1423,8 @@ static void CheckValue ( variable_t *p_var, vlc_value_t *p_val )
}
/*****************************************************************************
* InheritValue: try to inherit the value of this variable from the
same one
*
in our closest parent, libvlc
or ultimately from the configuration.
* InheritValue: try to inherit the value of this variable from the
closest
*
ancestor objects
or ultimately from the configuration.
* The function should always be entered with the object var_lock locked.
*****************************************************************************/
static
int
InheritValue
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
...
...
@@ -1433,17 +1433,11 @@ static int InheritValue( vlc_object_t *p_this, const char *psz_name,
int
i_var
;
variable_t
*
p_var
;
if
(
p_this
->
p_parent
||
(
p_this
->
p_libvlc
&&
p_this
!=
(
vlc_object_t
*
)
p_this
->
p_libvlc
)
)
if
(
p_this
->
p_parent
)
{
vlc_object_internals_t
*
p_priv
;
if
(
p_this
->
p_parent
)
p_priv
=
vlc_internals
(
p_this
->
p_parent
);
else
p_priv
=
vlc_internals
(
p_this
->
p_libvlc
);
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
->
p_parent
);
i_var
=
Lookup
(
p_priv
->
p_vars
,
p_priv
->
i_vars
,
psz_name
);
if
(
i_var
>=
0
)
{
/* We found it! */
...
...
@@ -1461,12 +1455,9 @@ static int InheritValue( vlc_object_t *p_this, const char *psz_name,
? p_this->psz_object_name : "(Unknown)" );*/
return
VLC_SUCCESS
;
}
else
if
(
p_this
->
p_parent
)
/* We are still not there */
return
InheritValue
(
p_this
->
p_parent
,
psz_name
,
p_val
,
i_type
);
/* else take value from config */
return
InheritValue
(
p_this
->
p_parent
,
psz_name
,
p_val
,
i_type
);
}
/* else take value from config */
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