changeset 790:c199c1f23921 trunk

[svn] - translate curl error number into corresponding error message. patch by Joker.
author yaz
date Wed, 07 Mar 2007 00:53:24 -0800
parents 354c69a939bc
children 91d2b302f479
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Mar 06 22:08:18 2007 -0800
+++ b/ChangeLog	Wed Mar 07 00:53:24 2007 -0800
@@ -1,3 +1,17 @@
+2007-03-07 06:08:18 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1676]
+  revising vfs_fread() check code.
+  - check vfs handle code has been restored to original position.
+  - accidentally removed substitution to ret has been restored.
+  - in audmad_is_our_fd(), check code just puts log message instead of return. please let me know if log message would be put upon proper mp3 file.
+  - in scan_file(), check code returns if vfs_fread() fails. this fixes open audio with bogus parameters problem.
+  
+  trunk/src/madplug/decoder.c |    6 ++----
+  trunk/src/madplug/input.c   |    5 ++---
+  trunk/src/madplug/plugin.c  |   25 +++++++++++++++----------
+  3 files changed, 19 insertions(+), 17 deletions(-)
+
+
 2007-03-06 23:43:15 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1674]
   - revert r1664 as it breaks too much
--- a/src/curl/curl.c	Tue Mar 06 22:08:18 2007 -0800
+++ b/src/curl/curl.c	Wed Mar 07 00:53:24 2007 -0800
@@ -467,7 +467,7 @@
       result != CURLE_GOT_NOTHING && result != CURLE_HTTP_RANGE_ERROR &&
       result != CURLE_PARTIAL_FILE)
     {
-      g_print("Got curl error %d\n", result);
+      g_print("Got curl error %d: %s\n", result, curl_easy_strerror(result));
       handle->failed = 1;
     }
   if (DEBUG_CONNECTION)