Changeset 4518a7d784e3ebabf4351725760c612831179239

Show
Ignore:
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
  • src/stream_output/stream_output.c

    r9db6904 r4518a7d  
    961961                break; 
    962962            } 
     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            } 
    963969        } 
    964970        if( ppsz_options[i] == NULL ) 
     
    969975 
    970976        /* create name */ 
    971         asprintf( &psz_name, "%s%s", psz_prefix, cfg->psz_name ); 
     977        asprintf( &psz_name, "%s%s", psz_prefix, ppsz_options[i] ); 
    972978 
    973979        /* get the type of the variable */ 
    974980        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  
    991981        if( !i_type ) 
    992982        {