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
42301e49
Commit
42301e49
authored
Jan 17, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules bank: use var_Inherit instead of config_Get
parent
c34586fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/modules/modules.c
src/modules/modules.c
+3
-3
No files found.
src/modules/modules.c
View file @
42301e49
...
@@ -165,7 +165,7 @@ void module_EndBank( vlc_object_t *p_this, bool b_plugins )
...
@@ -165,7 +165,7 @@ void module_EndBank( vlc_object_t *p_this, bool b_plugins )
assert
(
p_bank
!=
NULL
);
assert
(
p_bank
!=
NULL
);
/* Save the configuration */
/* Save the configuration */
if
(
!
config_GetInt
(
p_this
,
"ignore-config"
)
)
if
(
!
var_InheritBool
(
p_this
,
"ignore-config"
)
)
config_AutoSaveConfigFile
(
p_this
);
config_AutoSaveConfigFile
(
p_this
);
/* If plugins were _not_ loaded, then the caller still has the bank lock
/* If plugins were _not_ loaded, then the caller still has the bank lock
...
@@ -230,7 +230,7 @@ void module_LoadPlugins( vlc_object_t * p_this, bool b_cache_delete )
...
@@ -230,7 +230,7 @@ void module_LoadPlugins( vlc_object_t * p_this, bool b_cache_delete )
if
(
p_bank
->
i_usage
==
1
)
if
(
p_bank
->
i_usage
==
1
)
{
{
msg_Dbg
(
p_this
,
"checking plugin modules"
);
msg_Dbg
(
p_this
,
"checking plugin modules"
);
p_module_bank
->
b_cache
=
config_GetInt
(
p_this
,
"plugins-cache"
)
>
0
;
p_module_bank
->
b_cache
=
var_InheritBool
(
p_this
,
"plugins-cache"
)
;
if
(
p_module_bank
->
b_cache
||
b_cache_delete
)
if
(
p_module_bank
->
b_cache
||
b_cache_delete
)
CacheLoad
(
p_this
,
p_module_bank
,
b_cache_delete
);
CacheLoad
(
p_this
,
p_module_bank
,
b_cache_delete
);
...
@@ -847,7 +847,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank )
...
@@ -847,7 +847,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank )
#endif
#endif
/* If the user provided a plugin path, we add it to the list */
/* If the user provided a plugin path, we add it to the list */
char
*
userpaths
=
config_GetPsz
(
p_this
,
"plugin-path"
);
char
*
userpaths
=
var_InheritString
(
p_this
,
"plugin-path"
);
char
*
paths_iter
;
char
*
paths_iter
;
for
(
paths_iter
=
userpaths
;
paths_iter
;
)
for
(
paths_iter
=
userpaths
;
paths_iter
;
)
...
...
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