diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-21 19:12:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-21 19:12:44 +0100 |
| commit | fe771b1f0ed9f794bc98faa4cca2a15651f28e87 (patch) | |
| tree | ae4366fcdd84796bcb75d3012893929f7bc2c71f /src/lib/single_stream_audio_content.cc | |
| parent | 6ec7654b77b22d32cb1ca0dd35c8d66e16ca36d6 (diff) | |
Add more video properties to content properties dialog.
Also implement the whole properties thing more neatly.
Diffstat (limited to 'src/lib/single_stream_audio_content.cc')
| -rw-r--r-- | src/lib/single_stream_audio_content.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/single_stream_audio_content.cc b/src/lib/single_stream_audio_content.cc index cf2dcc1bd..38623422d 100644 --- a/src/lib/single_stream_audio_content.cc +++ b/src/lib/single_stream_audio_content.cc @@ -22,9 +22,13 @@ #include "film.h" #include "raw_convert.h" +#include "i18n.h" + using std::string; using std::cout; using std::vector; +using std::list; +using std::pair; using boost::shared_ptr; SingleStreamAudioContent::SingleStreamAudioContent (shared_ptr<const Film> film) @@ -81,3 +85,10 @@ SingleStreamAudioContent::audio_streams () const s.push_back (_audio_stream); return s; } + +void +SingleStreamAudioContent::add_properties (list<pair<string, string> >& p) const +{ + /* XXX: this could be better wrt audio streams */ + p.push_back (make_pair (_("Audio channels"), raw_convert<string> (audio_stream()->channels ()))); +} |
