diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-27 16:38:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-05-27 16:38:28 +0100 |
| commit | 661de111c0dbc968ecb004eca5b26f8400b136f1 (patch) | |
| tree | 3097de840bd9b6acf48bc5cc857371998cb00bff /src/wx/content_properties_dialog.cc | |
| parent | a28f926237c3de58c202843bea7913c276d0cbbc (diff) | |
FFmpegContent does not need audio_length().
Diffstat (limited to 'src/wx/content_properties_dialog.cc')
| -rw-r--r-- | src/wx/content_properties_dialog.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/content_properties_dialog.cc b/src/wx/content_properties_dialog.cc index 45593fd5b..c212eb50a 100644 --- a/src/wx/content_properties_dialog.cc +++ b/src/wx/content_properties_dialog.cc @@ -23,6 +23,7 @@ #include "lib/content.h" #include "lib/video_content.h" #include "lib/audio_content.h" +#include "lib/single_stream_audio_content.h" #include <boost/algorithm/string.hpp> using std::string; @@ -58,9 +59,13 @@ ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr<C _("Audio channels"), std_to_wx (raw_convert<string> (audio->audio_channels ())) ); + } + + shared_ptr<SingleStreamAudioContent> single = dynamic_pointer_cast<SingleStreamAudioContent> (content); + if (single) { add_property ( _("Audio length"), - std_to_wx (raw_convert<string> (audio->audio_length())) + " " + _("audio frames") + std_to_wx (raw_convert<string> (single->audio_length())) + " " + _("audio frames") ); } |
