summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
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) {