summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-01 17:23:39 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-01 17:23:39 +0100
commit97d25da42455d0ed93c2eebe023883767bb12d53 (patch)
tree3fe2d7b795e61fcc084e3f556e6f1be2e95b0c1c /src/wx
parentbf1191b8c548903f7a7d0664a51d15611573d00b (diff)
Put codec name into the audio mapping view for each stream.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/audio_panel.cc9
1 files changed, 8 insertions, 1 deletions
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<const AudioStream> i, ac.front()->audio->streams()) {
shared_ptr<const FFmpegAudioStream> f = dynamic_pointer_cast<const FFmpegAudioStream> (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);