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
93339c0d
Commit
93339c0d
authored
Apr 15, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/configuration.c: fixed a few recent bugs.
parent
f976d6ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/misc/configuration.c
src/misc/configuration.c
+6
-3
No files found.
src/misc/configuration.c
View file @
93339c0d
...
@@ -1200,6 +1200,7 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
...
@@ -1200,6 +1200,7 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
i_value
=
p_item
->
i_value_saved
;
i_value
=
p_item
->
i_value_saved
;
f_value
=
p_item
->
f_value_saved
;
f_value
=
p_item
->
f_value_saved
;
psz_value
=
p_item
->
psz_value_saved
;
psz_value
=
p_item
->
psz_value_saved
;
if
(
!
psz_value
)
psz_value
=
p_item
->
psz_value_orig
;
}
}
if
(
p_item
->
i_type
&
CONFIG_HINT
)
if
(
p_item
->
i_type
&
CONFIG_HINT
)
...
@@ -1290,12 +1291,13 @@ int config_AutoSaveConfigFile( vlc_object_t *p_this )
...
@@ -1290,12 +1291,13 @@ int config_AutoSaveConfigFile( vlc_object_t *p_this )
vlc_list_t
*
p_list
;
vlc_list_t
*
p_list
;
module_t
*
p_parser
;
module_t
*
p_parser
;
module_config_t
*
p_item
;
module_config_t
*
p_item
;
int
i_index
=
0
;
int
i_index
,
i_count
;
/* Check if there's anything to save */
/* Check if there's anything to save */
vlc_mutex_lock
(
&
p_this
->
p_vlc
->
config_lock
);
vlc_mutex_lock
(
&
p_this
->
p_vlc
->
config_lock
);
p_list
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
p_list
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
for
(
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
i_count
=
p_list
->
i_count
;
for
(
i_index
=
0
;
i_index
<
i_count
;
i_index
++
)
{
{
p_parser
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
p_parser
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
...
@@ -1307,11 +1309,12 @@ int config_AutoSaveConfigFile( vlc_object_t *p_this )
...
@@ -1307,11 +1309,12 @@ int config_AutoSaveConfigFile( vlc_object_t *p_this )
{
{
if
(
p_item
->
b_autosave
&&
p_item
->
b_dirty
)
break
;
if
(
p_item
->
b_autosave
&&
p_item
->
b_dirty
)
break
;
}
}
if
(
p_item
->
i_type
!=
CONFIG_HINT_END
)
break
;
}
}
vlc_list_release
(
p_list
);
vlc_list_release
(
p_list
);
vlc_mutex_unlock
(
&
p_this
->
p_vlc
->
config_lock
);
vlc_mutex_unlock
(
&
p_this
->
p_vlc
->
config_lock
);
if
(
i_index
==
p_list
->
i_count
)
return
VLC_SUCCESS
;
if
(
i_index
==
i_count
)
return
VLC_SUCCESS
;
return
SaveConfigFile
(
p_this
,
0
,
VLC_TRUE
);
return
SaveConfigFile
(
p_this
,
0
,
VLC_TRUE
);
}
}
...
...
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