summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-10 16:42:35 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-10 16:49:36 +0000
commit52d830a586c8091ad352a04dcb0a14df8fe9b247 (patch)
treeeabff6636b9dc323024131f4c9ae8c26334786d1 /src/lib
parentc205a496d1d68d23d5101024928cf40ac22a235e (diff)
Use number of channels rather than 'unknown' for un-named audio streams.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg_examiner.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index ddbed4c53..215c5e758 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -160,9 +160,11 @@ FFmpegExaminer::stream_name (AVStream* s) const
}
}
- if (n.str().empty()) {
- n << "unknown";
+ if (!n.str().empty()) {
+ n << "; ";
}
+ n << s->codec->channels << " channels";
+
return n.str ();
}