Commit 4ff1ff2e authored by Bart van der Velden's avatar Bart van der Velden

Fix a warning (#53)

parent d934c9a1
......@@ -179,6 +179,9 @@ public:
};
AudioFile::AudioFile(const TagLib::FileRef& fileRef)
: m_numSamples(0),
m_channels(0),
m_bitrate(0)
{
m_artistName = fileRef.tag()->artist().toWString();
m_trackTitle = fileRef.tag()->title().toWString();
......@@ -187,6 +190,7 @@ AudioFile::AudioFile(const TagLib::FileRef& fileRef)
m_sampleRate = fileRef.audioProperties()->sampleRate();
TagLib::StringList sl = fileRef.file()->properties().unsupportedData();
int len = fileRef.file()->length();
m_fileSize = len;
TagLib::PropertyMap pm = fileRef.file()->properties();
TagLib::String s = pm.toString();
if (s.length() > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment