Version: 1.4 (using KDE KDE 3.5.8) Installed from: Debian testing/unstable Packages OS: Linux /* Copied from http://bugs.debian.org/454732 */ Hi ! As it seems, at least the C binding of the library do not return NULL when opening a file that exists, but ends with the .mp3 extension.. Output with attached example is: /nonexistent.mp3: safe file ! /nonexistent: Unsafe file ! The example can be compiled with: gcc -o test -ltag_c ./test.c Romain
Created attachment 22517 [details] Test program
I forgot to precise I'm using the C bindings.. Also, as a relative issue, taglib can't detect mp3 when they do not have the mp3 extension, and return NULL... It would be nice if the library could autodetect mp3 tags based on the file's content..
The returned pointer is not unsafe in anyway. You can use it all taglib_file_* calls and taglib_file_tag and taglib_file_audioproperties will return NULL. What's missing is a C wrapper for file->isValid().
SVN commit 766868 by wheeler: Add a C accessor to isValid() BUG:153944 M +5 -0 tag_c.cpp M +7 -0 tag_c.h WebSVN link: http://websvn.kde.org/?view=rev&revision=766868