Changeset 4518a7d784e3ebabf4351725760c612831179239
- Timestamp:
- 24/04/04 01:51:46
(5 years ago)
- Author:
- Laurent Aimar <fenrir@videolan.org>
- git-committer:
- Laurent Aimar <fenrir@videolan.org> 1082764306 +0000
- git-parent:
[9f9470c98466f9ea37df131b0da9c481282ce579]
- git-author:
- Laurent Aimar <fenrir@videolan.org> 1082764306 +0000
- Message:
- stream_output: fixed bool handling in sout_ParseCfg.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r9db6904 |
r4518a7d |
|
| 961 | 961 | break; |
|---|
| 962 | 962 | } |
|---|
| | 963 | if( ( !strncmp( cfg->psz_name, "no-", 3 ) && !strcmp( ppsz_options[i], cfg->psz_name + 3 ) ) || |
|---|
| | 964 | ( !strncmp( cfg->psz_name, "no", 2 ) && !strcmp( ppsz_options[i], cfg->psz_name + 2 ) ) ) |
|---|
| | 965 | { |
|---|
| | 966 | b_yes = VLC_FALSE; |
|---|
| | 967 | break; |
|---|
| | 968 | } |
|---|
| 963 | 969 | } |
|---|
| 964 | 970 | if( ppsz_options[i] == NULL ) |
|---|
| … | … | |
| 969 | 975 | |
|---|
| 970 | 976 | /* create name */ |
|---|
| 971 | | asprintf( &psz_name, "%s%s", psz_prefix, cfg->psz_name ); |
|---|
| | 977 | asprintf( &psz_name, "%s%s", psz_prefix, ppsz_options[i] ); |
|---|
| 972 | 978 | |
|---|
| 973 | 979 | /* get the type of the variable */ |
|---|
| 974 | 980 | i_type = config_GetType( p_this, psz_name ); |
|---|
| 975 | | if( !i_type && !strncmp( cfg->psz_name, "no", 2 ) ) |
|---|
| 976 | | { |
|---|
| 977 | | free( psz_name ); |
|---|
| 978 | | b_yes = VLC_FALSE; |
|---|
| 979 | | |
|---|
| 980 | | if( !strncmp( cfg->psz_name, "no-", 3 ) ) |
|---|
| 981 | | { |
|---|
| 982 | | asprintf( &psz_name, "%s%s", psz_prefix, cfg->psz_name + 3 ); |
|---|
| 983 | | } |
|---|
| 984 | | else |
|---|
| 985 | | { |
|---|
| 986 | | asprintf( &psz_name, "%s%s", psz_prefix, cfg->psz_name + 2 ); |
|---|
| 987 | | } |
|---|
| 988 | | i_type = config_GetType( p_this, psz_name ); |
|---|
| 989 | | } |
|---|
| 990 | | |
|---|
| 991 | 981 | if( !i_type ) |
|---|
| 992 | 982 | { |
|---|