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
4518a7d7
Commit
4518a7d7
authored
Apr 23, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stream_output: fixed bool handling in sout_ParseCfg.
parent
9f9470c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+7
-17
No files found.
src/stream_output/stream_output.c
View file @
4518a7d7
...
...
@@ -960,6 +960,12 @@ void __sout_ParseCfg( vlc_object_t *p_this, char *psz_prefix, const char **ppsz_
{
break
;
}
if
(
(
!
strncmp
(
cfg
->
psz_name
,
"no-"
,
3
)
&&
!
strcmp
(
ppsz_options
[
i
],
cfg
->
psz_name
+
3
)
)
||
(
!
strncmp
(
cfg
->
psz_name
,
"no"
,
2
)
&&
!
strcmp
(
ppsz_options
[
i
],
cfg
->
psz_name
+
2
)
)
)
{
b_yes
=
VLC_FALSE
;
break
;
}
}
if
(
ppsz_options
[
i
]
==
NULL
)
{
...
...
@@ -968,26 +974,10 @@ void __sout_ParseCfg( vlc_object_t *p_this, char *psz_prefix, const char **ppsz_
}
/* create name */
asprintf
(
&
psz_name
,
"%s%s"
,
psz_prefix
,
cfg
->
psz_name
);
asprintf
(
&
psz_name
,
"%s%s"
,
psz_prefix
,
ppsz_options
[
i
]
);
/* get the type of the variable */
i_type
=
config_GetType
(
p_this
,
psz_name
);
if
(
!
i_type
&&
!
strncmp
(
cfg
->
psz_name
,
"no"
,
2
)
)
{
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
)
{
msg_Warn
(
p_this
,
"unknown option %s (value=%s)"
,
cfg
->
psz_name
,
cfg
->
psz_value
);
...
...
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