Changeset 477ffed0ec6e787f5fbbc35ebc75fa99b6406877

Show
Ignore:
Timestamp:
11/05/05 17:34:24 (4 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1115825664 +0000
git-parent:

[13d3b7eccc57ceaa09cf4be7b02a718d32ef1f3f]

git-author:
Gildas Bazin <gbazin@videolan.org> 1115825664 +0000
Message:

* src/*, modules/gui/wxwindows/*: audio/video/sub-filter config options are now a colon (':') separated list of filters to keep the same syntax as the stream output.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/wxwindows/extrapanel.cpp

    r447b4ce r477ffed  
    10651065        { 
    10661066            psz_parser = psz_string; 
    1067             asprintf( &psz_string, (*psz_string) ? "%s,%s" : "%s%s", 
     1067            asprintf( &psz_string, (*psz_string) ? "%s:%s" : "%s%s", 
    10681068                            psz_string, psz_name ); 
    10691069            free( psz_parser ); 
     
    10791079        { 
    10801080            memmove( psz_parser, psz_parser + strlen(psz_name) + 
    1081                             (*(psz_parser + strlen(psz_name)) == ',' ? 1 : 0 ), 
     1081                            (*(psz_parser + strlen(psz_name)) == ':' ? 1 : 0 ), 
    10821082                            strlen(psz_parser + strlen(psz_name)) + 1 ); 
    10831083 
    10841084            /* Remove trailing : : */ 
    1085             if( *(psz_string+strlen(psz_string ) -1 ) == ',' ) 
     1085            if( *(psz_string+strlen(psz_string ) -1 ) == ':' ) 
    10861086            { 
    10871087                *(psz_string+strlen(psz_string ) -1 ) = '\0'; 
     
    11341134        { 
    11351135            psz_parser = psz_string; 
    1136             asprintf( &psz_string, (*psz_string) ? "%s,%s" : "%s%s", 
     1136            asprintf( &psz_string, (*psz_string) ? "%s:%s" : "%s%s", 
    11371137                            psz_string, psz_name ); 
    11381138            free( psz_parser ); 
     
    11481148        { 
    11491149            memmove( psz_parser, psz_parser + strlen(psz_name) + 
    1150                             (*(psz_parser + strlen(psz_name)) == ',' ? 1 : 0 ), 
     1150                            (*(psz_parser + strlen(psz_name)) == ':' ? 1 : 0 ), 
    11511151                            strlen(psz_parser + strlen(psz_name)) + 1 ); 
    11521152 
    1153             if( *(psz_string+strlen(psz_string ) -1 ) == ',' ) 
     1153            if( *(psz_string+strlen(psz_string ) -1 ) == ':' ) 
    11541154            { 
    11551155                *(psz_string+strlen(psz_string ) -1 ) = '\0'; 
  • modules/gui/wxwindows/preferences_widgets.cpp

    rd41216c r477ffed  
    466466            { 
    467467                /* Maybe not the clest solution */ 
    468                 if( ! newtext.Replace(wxString(wxT(",")) 
     468                if( ! newtext.Replace(wxString(wxT(":")) 
    469469                                      +wxU(pp_checkboxes[i]->psz_module), 
    470470                                      wxT(""))) 
    471471                { 
    472472                    if( ! newtext.Replace(wxString(wxU(pp_checkboxes[i]->psz_module)) 
    473                                            + wxT(","),wxT(""))) 
     473                                           + wxT(":"),wxT(""))) 
    474474            {  
    475475                        newtext.Replace(wxU(pp_checkboxes[i]->psz_module),wxU("")); 
     
    485485                else 
    486486                { 
    487                     newtext += wxU( "," ); 
     487                    newtext += wxU( ":" ); 
    488488                    newtext += wxU(pp_checkboxes[i]->psz_module); 
    489489                } 
  • src/audio_output/input.c

    r5480fa4 r477ffed  
    191191        psz_filters = (char *)realloc( psz_filters, strlen( psz_filters ) + 
    192192                                                    strlen( psz_visual )  + 1); 
    193         sprintf( psz_filters, "%s,%s", psz_filters, psz_visual ); 
     193        sprintf( psz_filters, "%s:%s", psz_filters, psz_visual ); 
    194194    } 
    195195    else if(  psz_visual && *psz_visual ) 
     
    213213            } 
    214214 
    215             while( *psz_parser == ' ' && *psz_parser == ',' ) 
     215            while( *psz_parser == ' ' && *psz_parser == ':' ) 
    216216            { 
    217217                psz_parser++; 
    218218            } 
    219             if( ( psz_next = strchr( psz_parser , ','  ) ) ) 
     219            if( ( psz_next = strchr( psz_parser , ':'  ) ) ) 
    220220            { 
    221221                *psz_next++ = '\0'; 
     
    590590        { 
    591591            psz_parser = val.psz_string; 
    592             asprintf( &val.psz_string, (*val.psz_string) ? "%s,%s" : "%s%s", 
     592            asprintf( &val.psz_string, (*val.psz_string) ? "%s:%s" : "%s%s", 
    593593                      val.psz_string, psz_name ); 
    594594            free( psz_parser ); 
     
    604604        { 
    605605            memmove( psz_parser, psz_parser + strlen(psz_name) + 
    606                      (*(psz_parser + strlen(psz_name)) == ',' ? 1 : 0 ), 
     606                     (*(psz_parser + strlen(psz_name)) == ':' ? 1 : 0 ), 
    607607                     strlen(psz_parser + strlen(psz_name)) + 1 ); 
    608608        } 
  • src/video_output/video_output.c

    r9cef7fa r477ffed  
    364364        char *psz_end; 
    365365 
    366         psz_end = strchr( ((vout_thread_t *)p_parent)->psz_filter_chain, ',' ); 
     366        psz_end = strchr( ((vout_thread_t *)p_parent)->psz_filter_chain, ':' ); 
    367367        if( psz_end && *(psz_end+1) ) 
    368368            p_vout->psz_filter_chain = strdup( psz_end+1 ); 
     
    383383        char *psz_end; 
    384384 
    385         psz_end = strchr( p_vout->psz_filter_chain, ',' ); 
     385        psz_end = strchr( p_vout->psz_filter_chain, ':' ); 
    386386        if( psz_end ) 
    387387            psz_plugin = strndup( p_vout->psz_filter_chain, 
     
    13841384        { 
    13851385            char *psz_src = psz_deinterlace + sizeof("deinterlace") - 1; 
    1386             if( psz_src[0] == ',' ) psz_src++; 
     1386            if( psz_src[0] == ':' ) psz_src++; 
    13871387            memmove( psz_deinterlace, psz_src, strlen(psz_src) + 1 ); 
    13881388        } 
     
    13911391    { 
    13921392        psz_filter = realloc( psz_filter, strlen( psz_filter ) + 
    1393                               sizeof(",deinterlace") ); 
    1394         if( psz_filter && *psz_filter ) strcat( psz_filter, "," ); 
     1393                              sizeof(":deinterlace") ); 
     1394        if( psz_filter && *psz_filter ) strcat( psz_filter, ":" ); 
    13951395        strcat( psz_filter, "deinterlace" ); 
    13961396    } 
  • src/video_output/vout_subpictures.c

    rbe7f00e r477ffed  
    112112    while( psz_filter && *psz_filter ) 
    113113    { 
    114         char *psz_parser = strchr( psz_filter, ',' ); 
    115         if( !psz_parser ) psz_parser = strchr( psz_filter, ':' ); 
     114        char *psz_parser = strchr( psz_filter, ':' ); 
    116115 
    117116        if( psz_parser ) *psz_parser++ = 0;