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
4ba30889
Commit
4ba30889
authored
Apr 16, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/configuration.c: YAF (yet another fix).
parent
000405ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
src/misc/configuration.c
src/misc/configuration.c
+17
-11
No files found.
src/misc/configuration.c
View file @
4ba30889
...
@@ -911,8 +911,9 @@ int __config_LoadConfigFile( vlc_object_t *p_this, const char *psz_module_name )
...
@@ -911,8 +911,9 @@ int __config_LoadConfigFile( vlc_object_t *p_this, const char *psz_module_name )
if
(
p_item
->
psz_value_saved
)
if
(
p_item
->
psz_value_saved
)
free
(
p_item
->
psz_value_saved
);
free
(
p_item
->
psz_value_saved
);
p_item
->
psz_value_saved
=
0
;
p_item
->
psz_value_saved
=
0
;
if
(
p_item
->
psz_value
&&
p_item
->
psz_value_orig
&&
if
(
!
p_item
->
psz_value
||
!
p_item
->
psz_value_orig
||
strcmp
(
p_item
->
psz_value
,
p_item
->
psz_value_orig
)
)
(
p_item
->
psz_value
&&
p_item
->
psz_value_orig
&&
strcmp
(
p_item
->
psz_value
,
p_item
->
psz_value_orig
)))
p_item
->
psz_value_saved
=
p_item
->
psz_value
?
p_item
->
psz_value_saved
=
p_item
->
psz_value
?
strdup
(
p_item
->
psz_value
)
:
0
;
strdup
(
p_item
->
psz_value
)
:
0
;
...
@@ -1195,6 +1196,10 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
...
@@ -1195,6 +1196,10 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
float
f_value
=
p_item
->
f_value
;
float
f_value
=
p_item
->
f_value
;
char
*
psz_value
=
p_item
->
psz_value
;
char
*
psz_value
=
p_item
->
psz_value
;
if
(
p_item
->
i_type
&
CONFIG_HINT
)
/* ignore hints */
continue
;
if
(
b_autosave
&&
!
p_item
->
b_autosave
)
if
(
b_autosave
&&
!
p_item
->
b_autosave
)
{
{
i_value
=
p_item
->
i_value_saved
;
i_value
=
p_item
->
i_value_saved
;
...
@@ -1202,10 +1207,10 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
...
@@ -1202,10 +1207,10 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
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
(
!
psz_value
)
psz_value
=
p_item
->
psz_value_orig
;
}
}
else
if
(
p_item
->
i_type
&
CONFIG_HINT
)
{
/* ignore hints */
p_item
->
b_dirty
=
VLC_FALSE
;
continue
;
}
switch
(
p_item
->
i_type
)
switch
(
p_item
->
i_type
)
{
{
...
@@ -1258,14 +1263,15 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
...
@@ -1258,14 +1263,15 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
fprintf
(
file
,
"%s=%s
\n
"
,
p_item
->
psz_name
,
fprintf
(
file
,
"%s=%s
\n
"
,
p_item
->
psz_name
,
psz_value
?
psz_value
:
""
);
psz_value
?
psz_value
:
""
);
if
(
p_item
->
psz_value_saved
)
if
(
b_autosave
&&
!
p_item
->
b_autosave
)
break
;
free
(
p_item
->
psz_value_saved
);
if
(
p_item
->
psz_value_saved
)
free
(
p_item
->
psz_value_saved
);
p_item
->
psz_value_saved
=
0
;
p_item
->
psz_value_saved
=
0
;
if
(
psz_value
&&
p_item
->
psz_value_orig
&&
if
(
(
psz_value
&&
p_item
->
psz_value_orig
&&
strcmp
(
psz_value
,
p_item
->
psz_value_orig
)
)
strcmp
(
psz_value
,
p_item
->
psz_value_orig
))
||
!
psz_value
||
!
p_item
->
psz_value_orig
)
p_item
->
psz_value_saved
=
psz_value
?
strdup
(
psz_value
)
:
0
;
p_item
->
psz_value_saved
=
psz_value
?
strdup
(
psz_value
)
:
0
;
}
}
p_item
->
b_dirty
=
VLC_FALSE
;
}
}
fprintf
(
file
,
"
\n
"
);
fprintf
(
file
,
"
\n
"
);
...
...
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