[vlc-devel] commit: String rationalization ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Sep 27 15:03:13 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Sep 27 16:06:28 2008 +0300| [098dbe894870b02fb0214cb02ca6c3df08509bdf] | committer: Rémi Denis-Courmont
String rationalization
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=098dbe894870b02fb0214cb02ca6c3df08509bdf
---
src/input/es_out.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 5bd4e68..9e4819a 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1584,12 +1584,6 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
VLC_FOURCC('c', 'c', '3', ' '),
VLC_FOURCC('c', 'c', '4', ' '),
};
- static const char ppsz_description[4][18] = {
- N_("Closed captions 1"),
- N_("Closed captions 2"),
- N_("Closed captions 3"),
- N_("Closed captions 4"),
- };
es_format_t fmt;
if( es->pb_cc_present[i] || !pb_cc[i] )
@@ -1598,7 +1592,9 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
es_format_Init( &fmt, SPU_ES, fcc[i] );
fmt.i_group = es->fmt.i_group;
- fmt.psz_description = strdup( _(ppsz_description[i] ) );
+ if( asprintf( &fmt.psz_description,
+ _("Closed captions %u"), 1 + i ) == -1 )
+ fmt.psz_description = NULL;
es->pp_cc_es[i] = EsOutAdd( out, &fmt );
es->pp_cc_es[i]->p_master = es;
es_format_Clean( &fmt );
More information about the vlc-devel
mailing list