开发者

Taglib errors/warnings

I'm using th开发者_高级运维e c bindings for taglib 1.6.3. When opening a file with taglib_file_new, messages are printed to stderr. How can I control and use these messages? In particular, I would like to catch and handle some of the errors, and secondly I want to TURN OFF the verbose logging to stderr.


Unfortunately, you can't catch them, but if you compile TagLib in release mode (cmake -DCMAKE_BUILD_TYPE=Release), the messages won't be printed.


You could effectively hide the error messages by reopen:ing stderr. If you want to silence it totally, you could redirect it to some kind of null device or internal log file. Otherwise, I guess that you would need to filter them out.

Another approach would be to modify taglib itself, which should work as the source is provided.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜