Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
eda425f0
Commit
eda425f0
authored
Dec 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplification, and no-ops removal
parent
1f9d8d6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
26 deletions
+4
-26
src/config/core.c
src/config/core.c
+0
-26
src/modules/entry.c
src/modules/entry.c
+4
-0
No files found.
src/config/core.c
View file @
eda425f0
...
...
@@ -520,32 +520,6 @@ int config_Duplicate( module_t *p_module, const module_config_t *p_orig,
for
(
size_t
i
=
0
;
i
<
n
;
i
++
)
{
p_module
->
p_config
[
i
]
=
p_orig
[
i
];
if
(
IsConfigIntegerType
(
p_module
->
p_config
[
i
].
i_type
))
{
p_module
->
p_config
[
i
].
orig
.
i
=
p_orig
[
i
].
value
.
i
;
p_module
->
p_config
[
i
].
saved
.
i
=
p_orig
[
i
].
value
.
i
;
}
else
if
(
IsConfigFloatType
(
p_module
->
p_config
[
i
].
i_type
))
{
p_module
->
p_config
[
i
].
orig
.
f
=
p_orig
[
i
].
value
.
f
;
p_module
->
p_config
[
i
].
saved
.
f
=
p_orig
[
i
].
value
.
f
;
}
else
if
(
IsConfigStringType
(
p_module
->
p_config
[
i
].
i_type
))
{
p_module
->
p_config
[
i
].
value
.
psz
=
strdupnull
(
p_orig
[
i
].
value
.
psz
);
p_module
->
p_config
[
i
].
orig
.
psz
=
strdupnull
(
p_orig
[
i
].
value
.
psz
);
p_module
->
p_config
[
i
].
saved
.
psz
=
NULL
;
}
p_module
->
p_config
[
i
].
psz_type
=
p_orig
[
i
].
psz_type
;
p_module
->
p_config
[
i
].
psz_name
=
p_orig
[
i
].
psz_name
;
p_module
->
p_config
[
i
].
psz_current
=
p_orig
[
i
].
psz_current
;
p_module
->
p_config
[
i
].
psz_text
=
p_orig
[
i
].
psz_text
;
p_module
->
p_config
[
i
].
psz_longtext
=
p_orig
[
i
].
psz_longtext
;
p_module
->
p_config
[
i
].
p_lock
=
&
p_module
->
object_lock
;
/* duplicate the string list */
...
...
src/modules/entry.c
View file @
eda425f0
...
...
@@ -198,12 +198,14 @@ int vlc_config_set (module_config_t *restrict item, vlc_config_t id, ...)
{
if
(
IsConfigIntegerType
(
item
->
i_type
))
{
item
->
orig
.
i
=
item
->
saved
.
i
=
item
->
value
.
i
=
va_arg
(
ap
,
int
);
ret
=
0
;
}
else
if
(
IsConfigFloatType
(
item
->
i_type
))
{
item
->
orig
.
f
=
item
->
saved
.
f
=
item
->
value
.
f
=
va_arg
(
ap
,
double
);
ret
=
0
;
}
...
...
@@ -212,6 +214,8 @@ int vlc_config_set (module_config_t *restrict item, vlc_config_t id, ...)
{
const
char
*
value
=
va_arg
(
ap
,
const
char
*
);
item
->
value
.
psz
=
value
?
strdup
(
value
)
:
NULL
;
item
->
orig
.
psz
=
value
?
strdup
(
value
)
:
NULL
;
item
->
saved
.
psz
=
value
?
strdup
(
value
)
:
NULL
;
ret
=
0
;
}
break
;
...
...
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