diff options
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) { |