projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f21abdf
)
Try to fix plural on audio channels.
author
Carl Hetherington
<cth@carlh.net>
Mon, 7 Jan 2013 01:05:10 +0000
(
01:05
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 7 Jan 2013 01:05:10 +0000
(
01:05
+0000)
src/wx/film_editor.cc
patch
|
blob
|
history
diff --git
a/src/wx/film_editor.cc
b/src/wx/film_editor.cc
index 22fd1cc1434bbbad958677ee67c60dbaa4b272d4..dece245689b84d1092265c652da51e11c046280f 100644
(file)
--- a/
src/wx/film_editor.cc
+++ b/
src/wx/film_editor.cc
@@
-1075,7
+1075,12
@@
FilmEditor::setup_audio_details ()
_audio->SetLabel (wxT (""));
} else {
stringstream s;
- s << _film->audio_stream()->channels () << " channels, " << _film->audio_stream()->sample_rate() << "Hz";
+ if (_film->audio_stream()->channels() == 1) {
+ s << "1 channel";
+ } else {
+ s << _film->audio_stream()->channels () << " channels";
+ }
+ s << ", " << _film->audio_stream()->sample_rate() << "Hz";
_audio->SetLabel (std_to_wx (s.str ()));
}
}