From 97d25da42455d0ed93c2eebe023883767bb12d53 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 1 Jun 2016 17:23:39 +0100 Subject: Put codec name into the audio mapping view for each stream. --- src/wx/audio_panel.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/wx') diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index fa086b8e3..a2ede0bd6 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -160,7 +160,14 @@ AudioPanel::film_content_changed (int property) int c = 0; BOOST_FOREACH (shared_ptr i, ac.front()->audio->streams()) { shared_ptr f = dynamic_pointer_cast (i); - groups.push_back (AudioMappingView::Group (c, c + i->channels() - 1, f ? f->name : "")); + string name = ""; + if (f) { + name = f->name; + if (f->codec_name) { + name += " (" + f->codec_name.get() + ")"; + } + } + groups.push_back (AudioMappingView::Group (c, c + i->channels() - 1, name)); c += i->channels (); } _mapping->set_input_groups (groups); -- cgit v1.2.3