* Better support DLNA profiles on a couple media types.

* Handle AAC files without optional extended header data in the esds atom.
This commit is contained in:
Justin Maggard
2009-05-30 04:31:18 +00:00
parent e65e367b06
commit 7e32fcbdb5
3 changed files with 63 additions and 23 deletions

View File

@ -257,7 +257,6 @@ int
readtags(char *path, struct song_metadata *psong, struct stat *stat, char *lang, char *type)
{
char *fname;
int found = 0;
if(lang_index == -1)
lang_index = _lang2cp(lang);
@ -277,19 +276,11 @@ readtags(char *path, struct song_metadata *psong, struct stat *stat, char *lang,
}
// get tag
found |= _get_tags(path, psong);
// get fileinfo
found |= _get_fileinfo(path, psong);
//
if(!found)
if( _get_tags(path, psong) == 0 )
{
_make_composite_tags(psong);
return 0;
}
else
{
return -1;
}
// get fileinfo
return _get_fileinfo(path, psong);
}