changeset 741:775c18c4c907 trunk

[svn] - add metadata key "content-length", which allows for getting a content length.
author nenolod
date Tue, 27 Feb 2007 05:40:42 -0800
parents 6ae04ca57bc1
children 2804b98b09b9
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Feb 27 04:29:52 2007 -0800
+++ b/ChangeLog	Tue Feb 27 05:40:42 2007 -0800
@@ -1,3 +1,12 @@
+2007-02-27 12:29:52 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1578]
+  - some ringbuffering issues could cause crashing. a final review has 
+    resulted in this fix.
+  
+  trunk/src/aac/src/libmp4.c |   39 ++++++++++++++++++++-------------------
+  1 file changed, 20 insertions(+), 19 deletions(-)
+
+
 2007-02-27 12:19:56 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1576]
   - do not pass a buffered FD to the decoding thread, just use it for 
--- a/src/curl/curl.c	Tue Feb 27 04:29:52 2007 -0800
+++ b/src/curl/curl.c	Tue Feb 27 05:40:42 2007 -0800
@@ -893,6 +893,8 @@
     return strdup(handle->name);
   if (!strcmp(field, "track-name") && handle->title != NULL)
     return strdup(handle->title);
+  if (!strcmp(field, "content-length"))
+    return g_strdup_printf("%ld", handle->length);
   return NULL;
 }