Changeset 477ffed0ec6e787f5fbbc35ebc75fa99b6406877
- 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
| r447b4ce |
r477ffed |
|
| 1065 | 1065 | { |
|---|
| 1066 | 1066 | psz_parser = psz_string; |
|---|
| 1067 | | asprintf( &psz_string, (*psz_string) ? "%s,%s" : "%s%s", |
|---|
| | 1067 | asprintf( &psz_string, (*psz_string) ? "%s:%s" : "%s%s", |
|---|
| 1068 | 1068 | psz_string, psz_name ); |
|---|
| 1069 | 1069 | free( psz_parser ); |
|---|
| … | … | |
| 1079 | 1079 | { |
|---|
| 1080 | 1080 | memmove( psz_parser, psz_parser + strlen(psz_name) + |
|---|
| 1081 | | (*(psz_parser + strlen(psz_name)) == ',' ? 1 : 0 ), |
|---|
| | 1081 | (*(psz_parser + strlen(psz_name)) == ':' ? 1 : 0 ), |
|---|
| 1082 | 1082 | strlen(psz_parser + strlen(psz_name)) + 1 ); |
|---|
| 1083 | 1083 | |
|---|
| 1084 | 1084 | /* Remove trailing : : */ |
|---|
| 1085 | | if( *(psz_string+strlen(psz_string ) -1 ) == ',' ) |
|---|
| | 1085 | if( *(psz_string+strlen(psz_string ) -1 ) == ':' ) |
|---|
| 1086 | 1086 | { |
|---|
| 1087 | 1087 | *(psz_string+strlen(psz_string ) -1 ) = '\0'; |
|---|
| … | … | |
| 1134 | 1134 | { |
|---|
| 1135 | 1135 | psz_parser = psz_string; |
|---|
| 1136 | | asprintf( &psz_string, (*psz_string) ? "%s,%s" : "%s%s", |
|---|
| | 1136 | asprintf( &psz_string, (*psz_string) ? "%s:%s" : "%s%s", |
|---|
| 1137 | 1137 | psz_string, psz_name ); |
|---|
| 1138 | 1138 | free( psz_parser ); |
|---|
| … | … | |
| 1148 | 1148 | { |
|---|
| 1149 | 1149 | memmove( psz_parser, psz_parser + strlen(psz_name) + |
|---|
| 1150 | | (*(psz_parser + strlen(psz_name)) == ',' ? 1 : 0 ), |
|---|
| | 1150 | (*(psz_parser + strlen(psz_name)) == ':' ? 1 : 0 ), |
|---|
| 1151 | 1151 | strlen(psz_parser + strlen(psz_name)) + 1 ); |
|---|
| 1152 | 1152 | |
|---|
| 1153 | | if( *(psz_string+strlen(psz_string ) -1 ) == ',' ) |
|---|
| | 1153 | if( *(psz_string+strlen(psz_string ) -1 ) == ':' ) |
|---|
| 1154 | 1154 | { |
|---|
| 1155 | 1155 | *(psz_string+strlen(psz_string ) -1 ) = '\0'; |
|---|
| rd41216c |
r477ffed |
|
| 466 | 466 | { |
|---|
| 467 | 467 | /* Maybe not the clest solution */ |
|---|
| 468 | | if( ! newtext.Replace(wxString(wxT(",")) |
|---|
| | 468 | if( ! newtext.Replace(wxString(wxT(":")) |
|---|
| 469 | 469 | +wxU(pp_checkboxes[i]->psz_module), |
|---|
| 470 | 470 | wxT(""))) |
|---|
| 471 | 471 | { |
|---|
| 472 | 472 | if( ! newtext.Replace(wxString(wxU(pp_checkboxes[i]->psz_module)) |
|---|
| 473 | | + wxT(","),wxT(""))) |
|---|
| | 473 | + wxT(":"),wxT(""))) |
|---|
| 474 | 474 | { |
|---|
| 475 | 475 | newtext.Replace(wxU(pp_checkboxes[i]->psz_module),wxU("")); |
|---|
| … | … | |
| 485 | 485 | else |
|---|
| 486 | 486 | { |
|---|
| 487 | | newtext += wxU( "," ); |
|---|
| | 487 | newtext += wxU( ":" ); |
|---|
| 488 | 488 | newtext += wxU(pp_checkboxes[i]->psz_module); |
|---|
| 489 | 489 | } |
|---|
| r5480fa4 |
r477ffed |
|
| 191 | 191 | psz_filters = (char *)realloc( psz_filters, strlen( psz_filters ) + |
|---|
| 192 | 192 | strlen( psz_visual ) + 1); |
|---|
| 193 | | sprintf( psz_filters, "%s,%s", psz_filters, psz_visual ); |
|---|
| | 193 | sprintf( psz_filters, "%s:%s", psz_filters, psz_visual ); |
|---|
| 194 | 194 | } |
|---|
| 195 | 195 | else if( psz_visual && *psz_visual ) |
|---|
| … | … | |
| 213 | 213 | } |
|---|
| 214 | 214 | |
|---|
| 215 | | while( *psz_parser == ' ' && *psz_parser == ',' ) |
|---|
| | 215 | while( *psz_parser == ' ' && *psz_parser == ':' ) |
|---|
| 216 | 216 | { |
|---|
| 217 | 217 | psz_parser++; |
|---|
| 218 | 218 | } |
|---|
| 219 | | if( ( psz_next = strchr( psz_parser , ',' ) ) ) |
|---|
| | 219 | if( ( psz_next = strchr( psz_parser , ':' ) ) ) |
|---|
| 220 | 220 | { |
|---|
| 221 | 221 | *psz_next++ = '\0'; |
|---|
| … | … | |
| 590 | 590 | { |
|---|
| 591 | 591 | 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", |
|---|
| 593 | 593 | val.psz_string, psz_name ); |
|---|
| 594 | 594 | free( psz_parser ); |
|---|
| … | … | |
| 604 | 604 | { |
|---|
| 605 | 605 | memmove( psz_parser, psz_parser + strlen(psz_name) + |
|---|
| 606 | | (*(psz_parser + strlen(psz_name)) == ',' ? 1 : 0 ), |
|---|
| | 606 | (*(psz_parser + strlen(psz_name)) == ':' ? 1 : 0 ), |
|---|
| 607 | 607 | strlen(psz_parser + strlen(psz_name)) + 1 ); |
|---|
| 608 | 608 | } |
|---|
| r9cef7fa |
r477ffed |
|
| 364 | 364 | char *psz_end; |
|---|
| 365 | 365 | |
|---|
| 366 | | psz_end = strchr( ((vout_thread_t *)p_parent)->psz_filter_chain, ',' ); |
|---|
| | 366 | psz_end = strchr( ((vout_thread_t *)p_parent)->psz_filter_chain, ':' ); |
|---|
| 367 | 367 | if( psz_end && *(psz_end+1) ) |
|---|
| 368 | 368 | p_vout->psz_filter_chain = strdup( psz_end+1 ); |
|---|
| … | … | |
| 383 | 383 | char *psz_end; |
|---|
| 384 | 384 | |
|---|
| 385 | | psz_end = strchr( p_vout->psz_filter_chain, ',' ); |
|---|
| | 385 | psz_end = strchr( p_vout->psz_filter_chain, ':' ); |
|---|
| 386 | 386 | if( psz_end ) |
|---|
| 387 | 387 | psz_plugin = strndup( p_vout->psz_filter_chain, |
|---|
| … | … | |
| 1384 | 1384 | { |
|---|
| 1385 | 1385 | char *psz_src = psz_deinterlace + sizeof("deinterlace") - 1; |
|---|
| 1386 | | if( psz_src[0] == ',' ) psz_src++; |
|---|
| | 1386 | if( psz_src[0] == ':' ) psz_src++; |
|---|
| 1387 | 1387 | memmove( psz_deinterlace, psz_src, strlen(psz_src) + 1 ); |
|---|
| 1388 | 1388 | } |
|---|
| … | … | |
| 1391 | 1391 | { |
|---|
| 1392 | 1392 | 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, ":" ); |
|---|
| 1395 | 1395 | strcat( psz_filter, "deinterlace" ); |
|---|
| 1396 | 1396 | } |
|---|
| rbe7f00e |
r477ffed |
|
| 112 | 112 | while( psz_filter && *psz_filter ) |
|---|
| 113 | 113 | { |
|---|
| 114 | | char *psz_parser = strchr( psz_filter, ',' ); |
|---|
| 115 | | if( !psz_parser ) psz_parser = strchr( psz_filter, ':' ); |
|---|
| | 114 | char *psz_parser = strchr( psz_filter, ':' ); |
|---|
| 116 | 115 | |
|---|
| 117 | 116 | if( psz_parser ) *psz_parser++ = 0; |
|---|