diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-27 20:55:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-02 13:38:21 +0100 |
| commit | 0a93237cb5e4642d3b698ff9b7d0cfae5401478c (patch) | |
| tree | b0d5255ae2b90d1c9ef489e78239c2f081ea0a9e /src/wx/content_properties_dialog.cc | |
| parent | 608c146eb09fac2a8fc60e1a72591f6bb8364e1f (diff) | |
Handle multiple audio streams in a single piece of content
in a similar way to the V1 patch.
Diffstat (limited to 'src/wx/content_properties_dialog.cc')
| -rw-r--r-- | src/wx/content_properties_dialog.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/wx/content_properties_dialog.cc b/src/wx/content_properties_dialog.cc index c212eb50a..feb2c6a46 100644 --- a/src/wx/content_properties_dialog.cc +++ b/src/wx/content_properties_dialog.cc @@ -53,19 +53,13 @@ ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr<C ); } - shared_ptr<AudioContent> audio = dynamic_pointer_cast<AudioContent> (content); - if (audio) { - add_property ( - _("Audio channels"), - std_to_wx (raw_convert<string> (audio->audio_channels ())) - ); - } - + /* XXX: this could be better wrt audio streams */ + shared_ptr<SingleStreamAudioContent> single = dynamic_pointer_cast<SingleStreamAudioContent> (content); if (single) { add_property ( - _("Audio length"), - std_to_wx (raw_convert<string> (single->audio_length())) + " " + _("audio frames") + _("Audio channels"), + std_to_wx (raw_convert<string> (single->audio_stream()->channels ())) ); } |
