diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-10 16:42:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-10 16:49:36 +0000 |
| commit | 52d830a586c8091ad352a04dcb0a14df8fe9b247 (patch) | |
| tree | eabff6636b9dc323024131f4c9ae8c26334786d1 /src/lib | |
| parent | c205a496d1d68d23d5101024928cf40ac22a235e (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.cc | 6 |
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 (); } |
