Skip to content

Commit

Permalink
changed: enable ffmpeg tag reader for dsf files
Browse files Browse the repository at this point in the history
  • Loading branch information
notspiff authored and popcornmix committed Sep 20, 2015
1 parent 8a491d3 commit f4d6d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xbmc/music/tags/MusicInfoTagLoaderFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ bool CMusicInfoTagLoaderFFmpeg::Load(const std::string& strFileName, CMusicInfoT
AVDictionaryEntry* avtag=NULL;
while ((avtag = av_dict_get(fctx->metadata, "", avtag, AV_DICT_IGNORE_SUFFIX)))
{
if (StringUtils::EqualsNoCase(URIUtils::GetExtension(strFileName), ".mka"))
if (StringUtils::EqualsNoCase(URIUtils::GetExtension(strFileName), ".mka") ||
StringUtils::EqualsNoCase(URIUtils::GetExtension(strFileName), ".dsf"))
{
if (strcasecmp(avtag->key, "title") == 0)
tag.SetTitle(avtag->value);
Expand Down
2 changes: 1 addition & 1 deletion xbmc/music/tags/MusicInfoTagLoaderFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ IMusicInfoTagLoader* CMusicInfoTagLoaderFactory::CreateLoader(const CFileItem& i
CMusicInfoTagLoaderSHN *pTagLoader = new CMusicInfoTagLoaderSHN();
return (IMusicInfoTagLoader*)pTagLoader;
}
else if (strExtension == "mka")
else if (strExtension == "mka" || strExtension == "dsf")
return new CMusicInfoTagLoaderFFmpeg();

return NULL;
Expand Down

0 comments on commit f4d6d70

Please sign in to comment.