From 7bcd72afe31561e3945c2c397d925cae2e3f74a8 Mon Sep 17 00:00:00 2001 From: martii Date: Thu, 17 Oct 2013 20:30:30 +0200 Subject: [PATCH] driver/audiodec/ffmpegdec: minor cleanup --- src/driver/audiodec/ffmpegdec.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/driver/audiodec/ffmpegdec.cpp b/src/driver/audiodec/ffmpegdec.cpp index 5da2712f4..b6cf0a59a 100644 --- a/src/driver/audiodec/ffmpegdec.cpp +++ b/src/driver/audiodec/ffmpegdec.cpp @@ -38,7 +38,6 @@ extern "C" { #include #include #include -#include } #include @@ -317,7 +316,7 @@ bool CFfmpegDec::SetMetaData(FILE * /* _in */, CAudioMetaData* m) m->samplerate = mSampleRate; std::stringstream ss; if (codec) - ss << std::string(codec->long_name) + " / " << mChannels << " channel(s)"; + ss << std::string(codec->long_name) + " / " << mChannels << " channel" << ( mChannels > 1 ? "s" : ""); m->type_info = ss.str(); m->changed=true; if (needsInit)