diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-17 17:30:50 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-17 17:30:50 +0000 |
commit | 9a7636f5bc50fdff56012a38076ec51d3b671711 (patch) | |
tree | 8d938207f03b1a575d70e535e039975d2bd916fa /src/tag.c | |
parent | b2b700a87d33eb536f33e59b286f8bd3e240486e (diff) |
have AAC and MP4 types
git-svn-id: https://svn.musicpd.org/mpd/trunk@267 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -168,13 +168,27 @@ MpdTag * mp3TagDup(char * utf8file) { #endif #ifdef HAVE_FAAD -MpdTag * aacTagDup(char * utf8file) { +MpdTag * mp4TagDup(char * utf8file) { MpdTag * ret = NULL; - int time; + int time = -1; - ret = id3Dup(utf8file); +#warning implement mp4 tag parsing, this includes using mp4v2 and id3 +#warning getMp4TotalTime needs implementing + //time = getMp4TotalTime(rmp2amp(utf8ToFsCharset(utf8file))); + + if(time>=0) { + if(!ret) ret = newMpdTag(); + ret->time = time; + } + + return ret; +} + +MpdTag * aacTagDup(char * utf8file) { + MpdTag * ret = NULL; + int time = -1; -#warning getAacTotalTime needs implementing +#warning getMp4TotalTime needs implementing //time = getAacTotalTime(rmp2amp(utf8ToFsCharset(utf8file))); if(time>=0) { |