mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 17:58:29 +00:00
Enabling the APE support again. Adding check in the tag reading if file isNull instead.
This commit is contained in:
parent
40e021d3d8
commit
fc3d22bfef
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user