PDA

View Full Version : QFile and TagLib::FileRef for the same file



monkazer
16th September 2012, 10:45
Hello

I have a little problem with my Qt program.
There is a function which downloads a mp3 file (using QFile) and is called each time new datas are available to be written.
Once these datas have been written, I 'd like to construct a TagLib::FileRef variable, to read the bitrate of the file.
The problem is this variable is always null (maybe because the file is already opened).

How can I fix that, without having to close and re-open the file each time ?

Thanks

monkazer
16th September 2012, 12:48
Downgrading to taglib 1.7.2 have fixed the problem... I'd prefer a solution working with the last version though.