[vlc-commits] [Git][videolan/vlc][master] input: show number of source channels independently of layout and
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Fri Aug 18 10:03:50 UTC 2023
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
eb5716b3 by Francois Cartegnie at 2023-08-18T09:47:08+00:00
input: show number of source channels independently of layout and
decoded
refs #28319
- - - - -
1 changed file:
- src/input/es_out.c
Changes:
=====================================
src/input/es_out.c
=====================================
@@ -4322,8 +4322,14 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const vlc_meta_t *p
case AUDIO_ES:
info_category_AddInfo( p_cat, _("Type"), _("Audio") );
+ if( p_fmt_es->audio.i_channels || p_fmt_es->audio.i_physical_channels )
+ info_category_AddInfo( p_cat, _("Channels"), "%u",
+ p_fmt_es->audio.i_channels ?
+ p_fmt_es->audio.i_channels :
+ vlc_popcount( p_fmt_es->audio.i_physical_channels ) );
+
if( p_fmt_es->audio.i_physical_channels )
- info_category_AddInfo( p_cat, _("Channels"), "%s",
+ info_category_AddInfo( p_cat, _("Channel Layout"), "%s",
vlc_gettext( aout_FormatPrintChannels( &p_fmt_es->audio ) ) );
if( p_fmt_es->audio.i_rate )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/eb5716b3b28538438947f9ed5567594fbb54b117
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/eb5716b3b28538438947f9ed5567594fbb54b117
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list