Commit d34da85a authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

input/es_out: add function EsInfoCategoryName

Given that we are generating a category-identifier that is to uniquely
identify a certain ES, it certainly make sense to introduce a helper.

The added function will aid readability, as well as making sure that the
string is always generated in the same way.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 0d170a02
......@@ -199,6 +199,7 @@ static char **LanguageSplit( const char *psz_langs, bool b_default_any );
static int LanguageArrayIndex( char **ppsz_langs, const char *psz_lang );
static char *EsOutProgramGetMetaName( es_out_pgrm_t *p_pgrm );
static char *EsInfoCategoryName( es_out_id_t* es );
static const vlc_fourcc_t EsOutFourccClosedCaptions[4] = {
VLC_FOURCC('c', 'c', '1', ' '),
......@@ -1157,6 +1158,16 @@ static char *EsOutProgramGetMetaName( es_out_pgrm_t *p_pgrm )
return psz;
static char *EsInfoCategoryName( es_out_id_t* es )
char *psz_category;
if( asprintf( &psz_category, _("Stream %d"), es->i_meta_id ) == -1 )
return NULL;
return psz_category;
static void EsOutProgramMeta( es_out_t *out, int i_group, const vlc_meta_t *p_meta )
es_out_sys_t *p_sys = out->p_sys;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment