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
9db69040
Commit
9db69040
authored
Apr 23, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stream_output: added bool support (untested).
parent
a31d6d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+17
-4
No files found.
src/stream_output/stream_output.c
View file @
9db69040
...
...
@@ -947,6 +947,7 @@ void __sout_ParseCfg( vlc_object_t *p_this, char *psz_prefix, const char **ppsz_
while
(
cfg
)
{
vlc_value_t
val
;
vlc_bool_t
b_yes
=
VLC_TRUE
;
if
(
cfg
->
psz_name
==
NULL
||
*
cfg
->
psz_name
==
'\0'
)
{
...
...
@@ -971,9 +972,20 @@ void __sout_ParseCfg( vlc_object_t *p_this, char *psz_prefix, const char **ppsz_
/* get the type of the variable */
i_type
=
config_GetType
(
p_this
,
psz_name
);
if
(
!
i_type
)
if
(
!
i_type
&&
!
strncmp
(
cfg
->
psz_name
,
"no"
,
2
)
)
{
/* TODO check for no, no- */
free
(
psz_name
);
b_yes
=
VLC_FALSE
;
if
(
!
strncmp
(
cfg
->
psz_name
,
"no-"
,
3
)
)
{
asprintf
(
&
psz_name
,
"%s%s"
,
psz_prefix
,
cfg
->
psz_name
+
3
);
}
else
{
asprintf
(
&
psz_name
,
"%s%s"
,
psz_prefix
,
cfg
->
psz_name
+
2
);
}
i_type
=
config_GetType
(
p_this
,
psz_name
);
}
if
(
!
i_type
)
...
...
@@ -989,6 +1001,9 @@ void __sout_ParseCfg( vlc_object_t *p_this, char *psz_prefix, const char **ppsz_
switch
(
i_type
)
{
case
VLC_VAR_BOOL
:
val
.
b_bool
=
b_yes
;
break
;
case
VLC_VAR_INTEGER
:
val
.
i_int
=
atoi
(
cfg
->
psz_value
?
cfg
->
psz_value
:
"0"
);
break
;
...
...
@@ -998,8 +1013,6 @@ void __sout_ParseCfg( vlc_object_t *p_this, char *psz_prefix, const char **ppsz_
case
VLC_VAR_STRING
:
val
.
psz_string
=
cfg
->
psz_value
;
break
;
case
VLC_VAR_BOOL
:
default:
msg_Warn
(
p_this
,
"unhandled config var type"
);
memset
(
&
val
,
0
,
sizeof
(
vlc_value_t
)
);
...
...
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