Commit e267f04f authored by camilo higuita's avatar camilo higuita

fix usage of taglib fileref

parent 00f2e91e
......@@ -27,11 +27,10 @@ TagInfo::TagInfo(const QString &url, QObject *parent) : QObject(parent)
if(_file.isReadable())
{
qDebug()<< ">>>FILE is READABLE" << _file.baseName() << url;
this->file = new TagLib::FileRef(this->path.toStdWString().c_str());
this->file = new TagLib::FileRef(TagLib::FileName(this->path.toStdWString().c_str()));
}
else
this->file = new TagLib::FileRef(nullptr);
this->file = new TagLib::FileRef();
}
TagInfo::~TagInfo()
......
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