changeset 697:74a762a3592e trunk

[svn] - temporarily cheat and disable certain codepaths for local files
author nenolod
date Tue, 20 Feb 2007 09:12:56 -0800
parents c787612e29ff
children acace9812961
files ChangeLog src/aac/src/libmp4.c
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Feb 20 09:02:15 2007 -0800
+++ b/ChangeLog	Tue Feb 20 09:12:56 2007 -0800
@@ -1,3 +1,12 @@
+2007-02-20 17:02:15 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1478]
+  - temporary workaround for ISO-8859-1 8bit character does not appear correctly.
+  
+  
+  trunk/src/madplug/input.c |    4 ++++
+  1 file changed, 4 insertions(+)
+
+
 2007-02-20 16:52:37 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1476]
   - no idea why we were using a dynamically allocated buffer for raw aac
--- a/src/aac/src/libmp4.c	Tue Feb 20 09:02:15 2007 -0800
+++ b/src/aac/src/libmp4.c	Tue Feb 20 09:12:56 2007 -0800
@@ -658,6 +658,8 @@
     gchar       *ext  = strrchr(temp, '.');
     gchar       *xmmstitle = NULL;
     faacDecConfigurationPtr config;
+    gboolean    remote = str_has_prefix_nocase(filename, "http:") ||
+			 str_has_prefix_nocase(filename, "https:");
 
     vfs_rewind(file);
     if((decoder = faacDecOpen()) == NULL){
@@ -772,8 +774,7 @@
         bufferconsumed += finfo.bytesconsumed;
         samplesdecoded = finfo.samples;
 
-        if(finfo.error > 0){
-            buffervalid--;
+        if(finfo.error > 0 && remote != FALSE){
             memmove(buffer, &buffer[1], buffervalid);
             if(buffervalid < BUFFER_SIZE) {
                buffervalid +=