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
60cca6d5
Commit
60cca6d5
authored
Feb 05, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecated options handling
parent
4148d937
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+37
-0
No files found.
src/stream_output/stream_output.c
View file @
60cca6d5
...
@@ -968,6 +968,7 @@ void __sout_CfgParse( vlc_object_t *p_this, char *psz_prefix,
...
@@ -968,6 +968,7 @@ void __sout_CfgParse( vlc_object_t *p_this, char *psz_prefix,
vlc_value_t
val
;
vlc_value_t
val
;
vlc_bool_t
b_yes
=
VLC_TRUE
;
vlc_bool_t
b_yes
=
VLC_TRUE
;
vlc_bool_t
b_once
=
VLC_FALSE
;
vlc_bool_t
b_once
=
VLC_FALSE
;
module_config_t
*
p_conf
;
if
(
cfg
->
psz_name
==
NULL
||
*
cfg
->
psz_name
==
'\0'
)
if
(
cfg
->
psz_name
==
NULL
||
*
cfg
->
psz_name
==
'\0'
)
{
{
...
@@ -1007,6 +1008,42 @@ void __sout_CfgParse( vlc_object_t *p_this, char *psz_prefix,
...
@@ -1007,6 +1008,42 @@ void __sout_CfgParse( vlc_object_t *p_this, char *psz_prefix,
/* create name */
/* create name */
asprintf
(
&
psz_name
,
"%s%s"
,
psz_prefix
,
b_once
?
&
ppsz_options
[
i
][
1
]
:
ppsz_options
[
i
]
);
asprintf
(
&
psz_name
,
"%s%s"
,
psz_prefix
,
b_once
?
&
ppsz_options
[
i
][
1
]
:
ppsz_options
[
i
]
);
/* Check if the option is deprecated */
p_conf
=
config_FindConfig
(
p_this
,
psz_name
);
/* This is basically cut and paste from src/misc/configuration.c
* with slight changes */
if
(
p_conf
&&
p_conf
->
psz_current
)
{
if
(
!
strcmp
(
p_conf
->
psz_current
,
"SUPPRESSED"
)
)
{
msg_Err
(
p_this
,
"Option %s is no longer used."
,
p_conf
->
psz_name
);
goto
next
;
}
else
if
(
p_conf
->
b_strict
)
{
msg_Err
(
p_this
,
"Option %s is deprecated. Use %s instead."
,
p_conf
->
psz_name
,
p_conf
->
psz_current
);
/* TODO: this should return an error and end option parsing
* ... but doing this would change the VLC API and all the
* modules so i'll do it later */
goto
next
;
}
else
{
msg_Warn
(
p_this
,
"Option %s is deprecated. You should use "
"%s instead."
,
p_conf
->
psz_name
,
p_conf
->
psz_current
);
i_type
=
config_GetType
(
p_this
,
psz_name
);
free
(
psz_name
);
psz_name
=
strdup
(
p_conf
->
psz_current
);
var_Create
(
p_this
,
psz_name
,
i_type
|
VLC_VAR_DOINHERIT
);
}
}
/* </Check if the option is deprecated> */
/* get the type of the variable */
/* get the type of the variable */
i_type
=
config_GetType
(
p_this
,
psz_name
);
i_type
=
config_GetType
(
p_this
,
psz_name
);
if
(
!
i_type
)
if
(
!
i_type
)
...
...
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