changeset 80:c312e5c852ac trunk

[svn] - parse comments
author nenolod
date Mon, 02 Oct 2006 20:58:32 -0700
parents 722fd456ae1a
children 254cc9620517
files ChangeLog src/alac/demux.c
diffstat 2 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Oct 02 20:54:57 2006 -0700
+++ b/ChangeLog	Mon Oct 02 20:58:32 2006 -0700
@@ -1,3 +1,13 @@
+2006-10-03 03:54:57 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [158]
+  - parse metadata on ALAC files... seems to work, but the method is inefficient
+  
+  trunk/src/alac/demux.c  |   95 +++++++++++++++++++++++++++++++++++++-----------
+  trunk/src/alac/demux.h  |   10 +++++
+  trunk/src/alac/plugin.c |   79 ++++++++++++++++++++++++++++++++++++++-
+  3 files changed, 161 insertions(+), 23 deletions(-)
+
+
 2006-10-03 02:55:45 +0000  William Pitcock <nenolod@nenolod.net>
   revision [156]
   - a few concurrency fixes
--- a/src/alac/demux.c	Mon Oct 02 20:54:57 2006 -0700
+++ b/src/alac/demux.c	Mon Oct 02 20:58:32 2006 -0700
@@ -482,7 +482,8 @@
 	UDTA_ART,
 	UDTA_ALB,
 	UDTA_GEN,
-	UDTA_DAY
+	UDTA_DAY,
+	UDTA_CMT,
 };
 
 /* 'udta' user data.. contains tag info. this routine is utterly fucked because Apple's
@@ -530,6 +531,10 @@
              udta_tgt = UDTA_DAY;
 	     bptr += 4;
              break;
+        case MAKEFOURCC(0xA9,'c','m','t'):
+             udta_tgt = UDTA_CMT;
+	     bptr += 4;
+             break;
         case MAKEFOURCC('d','a','t','a'):
              switch(udta_tgt)
              {
@@ -545,6 +550,9 @@
              case UDTA_DAY:
                  qtmovie->res->tuple.day = g_strdup(bptr + 12);
                  break;
+             case UDTA_CMT:
+                 qtmovie->res->tuple.cmt = g_strdup(bptr + 12);
+                 break;
              case UDTA_GEN:
                  qtmovie->res->tuple.gen = g_strdup(bptr + 12);
                  break;