[vlc-devel] [RFC PATCHv2 07/18] es_out: replace the meta_id by the str_id
Thomas Guillem
thomas at gllm.fr
Tue Feb 18 17:11:20 CET 2020
And remove the Original ID info, that is now useless (can be retrieved from the
str_id).
---
src/input/es_out.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 4b20541aab3..0f3e11f4f29 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -148,9 +148,6 @@ struct es_out_id_t
/* Field for CC track from a master video */
es_out_id_t *p_master;
- /* ID for the meta data */
- int i_meta_id;
-
struct vlc_list node;
vlc_mouse_event mouse_event_cb;
@@ -1507,7 +1504,7 @@ static char *EsInfoCategoryName( es_out_id_t* es )
{
char *psz_category;
- if( asprintf( &psz_category, _("Stream %d"), es->i_meta_id ) == -1 )
+ if( asprintf( &psz_category, _("Stream '%s'"), es->id.str_id ) == -1 )
return NULL;
return psz_category;
@@ -2028,7 +2025,6 @@ static es_out_id_t *EsOutAddLocked( es_out_t *out, es_out_ctx_t *ctx,
es_format_Init( &es->fmt_out, UNKNOWN_ES, 0 );
- es->i_meta_id = p_sys->i_id++; /* always incremented */
es->b_scrambled = false;
es->b_forced = false;
es->b_terminated = false;
@@ -3878,11 +3874,6 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const vlc_meta_t *p
if( unlikely( !p_cat ) )
return;
- /* Add information */
- if( es->i_meta_id != es->fmt.i_id )
- info_category_AddInfo( p_cat, _("Original ID"),
- "%d", es->fmt.i_id );
-
const vlc_fourcc_t i_codec_fourcc = p_fmt_es->i_original_fourcc;
const char *psz_codec_description =
vlc_fourcc_GetDescription( p_fmt_es->i_cat, i_codec_fourcc );
--
2.20.1
More information about the vlc-devel
mailing list