changeset 727:b938fe96b20e trunk

[svn] - ensure that info->remote is set if url begins with http:// so that metadata can be displayed.
author yaz
date Sun, 25 Feb 2007 05:27:51 -0800
parents d24c2d0fb60c
children c26dc360a03e
files ChangeLog src/madplug/input.c src/madplug/plugin.h
diffstat 3 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 25 03:35:59 2007 -0800
+++ b/ChangeLog	Sun Feb 25 05:27:51 2007 -0800
@@ -1,3 +1,12 @@
+2007-02-25 11:35:59 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1550]
+  - depend on $(OGG_VORBIS_*) for debian's sake
+  
+  trunk/src/flac/Makefile         |    5 +++--
+  trunk/src/flac/libflac/Makefile |    2 +-
+  2 files changed, 4 insertions(+), 3 deletions(-)
+
+
 2007-02-25 04:27:03 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [1536]
   - without this, libconsole.so doesn't compile.
--- a/src/madplug/input.c	Sun Feb 25 03:35:59 2007 -0800
+++ b/src/madplug/input.c	Sun Feb 25 05:27:51 2007 -0800
@@ -120,7 +120,10 @@
     vfs_fseek(info->infile, 0, SEEK_END);
     info->size = vfs_ftell(info->infile);
     vfs_fseek(info->infile, 0, SEEK_SET);
-    info->remote = info->size == 0 ? TRUE : FALSE;
+    info->remote = info->size == 0 ? TRUE : FALSE; //proxy connection may result in non-zero size.
+    if (!strncasecmp("http://", url, 7) || !strncasecmp("https://", url, 8)) {
+        info->remote = TRUE;
+    }
 
 #ifdef DEBUG
     g_message("i: info->size = %lu", (long unsigned int)info->size);
--- a/src/madplug/plugin.h	Sun Feb 25 03:35:59 2007 -0800
+++ b/src/madplug/plugin.h	Sun Feb 25 05:27:51 2007 -0800
@@ -29,8 +29,6 @@
 #undef G_LOG_DOMAIN
 #define G_LOG_DOMAIN "MADPlug"
 
-//#include "config.h" // is it needed when in src tree?
-
 #undef PACKAGE
 #define PACKAGE "audacious-plugins"