vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Fri Nov 24 18:25:13 2017 +0100| [b7a62ba5c95d3c342d90e830028e3e75c7c8b0da] | committer: Hugo Beauzée-Luyssen
es_out: Remove duplicated code The "Type" info is set again a few lines below > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7a62ba5c95d3c342d90e830028e3e75c7c8b0da --- src/input/es_out.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/input/es_out.c b/src/input/es_out.c index e0e34676a4..07f118b2ce 100644 --- a/src/input/es_out.c +++ b/src/input/es_out.c @@ -3055,26 +3055,6 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t * return; /* Add information */ - const char *psz_type; - switch( fmt->i_cat ) - { - case AUDIO_ES: - psz_type = _("Audio"); - break; - case VIDEO_ES: - psz_type = _("Video"); - break; - case SPU_ES: - psz_type = _("Subtitle"); - break; - default: - psz_type = NULL; - break; - } - - if( psz_type ) - info_category_AddInfo( p_cat, _("Type"), "%s", psz_type ); - if( es->i_meta_id != es->i_id ) info_category_AddInfo( p_cat, _("Original ID"), "%d", es->i_id ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
