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
5b87e917
Commit
5b87e917
authored
May 02, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset config if module bank works, save config if VLC exits cleanly
parent
0a64e3e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
src/libvlc.c
src/libvlc.c
+13
-11
src/modules/modules.c
src/modules/modules.c
+0
-4
No files found.
src/libvlc.c
View file @
5b87e917
...
@@ -461,16 +461,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -461,16 +461,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
i_ret
=
VLC_EEXITSUCCESS
;
i_ret
=
VLC_EEXITSUCCESS
;
}
}
/* Check for config file options */
if
(
!
var_InheritBool
(
p_libvlc
,
"ignore-config"
)
)
{
if
(
var_InheritBool
(
p_libvlc
,
"reset-config"
)
)
{
config_ResetAll
(
p_libvlc
);
config_SaveConfigFile
(
p_libvlc
);
}
}
if
(
module_count
<=
1
)
if
(
module_count
<=
1
)
{
{
msg_Err
(
p_libvlc
,
"No plugins found! Check your VLC installation."
);
msg_Err
(
p_libvlc
,
"No plugins found! Check your VLC installation."
);
...
@@ -488,7 +478,15 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -488,7 +478,15 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
* Override default configuration with config file settings
* Override default configuration with config file settings
*/
*/
if
(
!
var_InheritBool
(
p_libvlc
,
"ignore-config"
)
)
if
(
!
var_InheritBool
(
p_libvlc
,
"ignore-config"
)
)
config_LoadConfigFile
(
p_libvlc
);
{
if
(
var_InheritBool
(
p_libvlc
,
"reset-config"
)
)
{
config_ResetAll
(
p_libvlc
);
config_SaveConfigFile
(
p_libvlc
);
}
else
config_LoadConfigFile
(
p_libvlc
);
}
/*
/*
* Override configuration with command line settings
* Override configuration with command line settings
...
@@ -1032,6 +1030,10 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
...
@@ -1032,6 +1030,10 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
priv
->
p_memcpy_module
=
NULL
;
priv
->
p_memcpy_module
=
NULL
;
}
}
/* Save the configuration */
if
(
!
var_InheritBool
(
p_libvlc
,
"ignore-config"
)
)
config_AutoSaveConfigFile
(
VLC_OBJECT
(
p_libvlc
)
);
/* Free module bank. It is refcounted, so we call this each time */
/* Free module bank. It is refcounted, so we call this each time */
module_EndBank
(
p_libvlc
,
true
);
module_EndBank
(
p_libvlc
,
true
);
...
...
src/modules/modules.c
View file @
5b87e917
...
@@ -145,10 +145,6 @@ void module_EndBank( vlc_object_t *p_this, bool b_plugins )
...
@@ -145,10 +145,6 @@ void module_EndBank( vlc_object_t *p_this, bool b_plugins )
assert
(
p_bank
!=
NULL
);
assert
(
p_bank
!=
NULL
);
/* Save the configuration */
if
(
!
var_InheritBool
(
p_this
,
"ignore-config"
)
)
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
* from module_InitBank(). */
* from module_InitBank(). */
if
(
b_plugins
)
if
(
b_plugins
)
...
...
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