Enabling the APE support again. Adding check in the tag reading if file isNull instead.

This commit is contained in:
Daniel Önnerby 2008-04-07 19:30:17 +00:00
parent 40e021d3d8
commit fc3d22bfef

View File

@ -84,7 +84,7 @@ bool TagReaderTaglib::CanReadTag(const utfchar *extension){
if( ext==UTF("mp3") ||
ext==UTF("ogg") ||
ext==UTF("flac") ||
//ext==UTF("ape") ||
ext==UTF("ape") ||
ext==UTF("mpc")
) {
return true;
@ -129,6 +129,7 @@ bool TagReaderTaglib::GetOGGTag(musik::core::Track *track){
bool TagReaderTaglib::GetGenericTag(musik::core::Track *track){
TagLib::FileRef oFile(track->GetValue("path"));
if(!oFile.isNull()){
TagLib::Tag *tag = oFile.tag();
TagLib::AudioProperties *oAudioProperties = oFile.audioProperties();
if(tag){
@ -156,6 +157,7 @@ bool TagReaderTaglib::GetGenericTag(musik::core::Track *track){
return true;
}
}
return false;