Mercurial > audlegacy-plugins
diff src/madplug/input.c @ 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 | 6bc134eec1f3 |
| children | 6ea974a229a8 |
line wrap: on
line diff
--- 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);
