summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-17 17:30:50 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-17 17:30:50 +0000
commit9a7636f5bc50fdff56012a38076ec51d3b671711 (patch)
tree8d938207f03b1a575d70e535e039975d2bd916fa /src/tag.c
parentb2b700a87d33eb536f33e59b286f8bd3e240486e (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.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/tag.c b/src/tag.c
index d599b44c4..1f73ffce7 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -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) {