read tag wma in 1.6

mociml mociml at 126.com
Wed Apr 14 13:50:08 CEST 2010


hello everyone,
I have  a question to ask ,
when I want to read  wma tag info,
in my PC,it works well,but in a cross platform board,mp3 ok,but wma not ,
f.isNull()         true
f.tag() is always 0x0    
if the file path what I pass is wrong?why mp3 format is correct?            
I use the example/readertag.cpp,in QT4.5!
readtag(QString filename)
{
    TagLib::FileRef f(filename.toUtf8().data());
    if(!f.isNull() && f.tag()) {
      TagLib::Tag *tag = f.tag();
      cout << "-- TAG --" << endl;
      cout << "title   - \"" << tag->title()   << "\"" << endl;
      cout << "artist  - \"" << tag->artist()  << "\"" << endl;
      cout << "album   - \"" << tag->album()   << "\"" << endl;
      cout << "year    - \"" << tag->year()    << "\"" << endl;
      cout << "comment - \"" << tag->comment() << "\"" << endl;
      cout << "track   - \"" << tag->track()   << "\"" << endl;
      cout << "genre   - \"" << tag->genre()   << "\"" << endl;
    }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20100414/af87acae/attachment.htm 


More information about the taglib-devel mailing list