# HG changeset patch # User nenolod # Date 1173272935 28800 # Node ID 91d2b302f4791ec321a49ae720f41638616cad8c # Parent c199c1f23921b4298b58c21862f47fc13422090d [svn] - only perform vfs fseek against info::infile if it is available. diff -r c199c1f23921 -r 91d2b302f479 ChangeLog --- a/ChangeLog Wed Mar 07 00:53:24 2007 -0800 +++ b/ChangeLog Wed Mar 07 05:08:55 2007 -0800 @@ -1,3 +1,11 @@ +2007-03-07 08:53:24 +0000 Yoshiki Yazawa + revision [1678] + - translate curl error number into corresponding error message. patch by Joker. + + trunk/src/curl/curl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2007-03-07 06:08:18 +0000 Yoshiki Yazawa revision [1676] revising vfs_fread() check code. diff -r c199c1f23921 -r 91d2b302f479 src/madplug/input.c --- a/src/madplug/input.c Wed Mar 07 00:53:24 2007 -0800 +++ b/src/madplug/input.c Wed Mar 07 05:08:55 2007 -0800 @@ -352,7 +352,7 @@ { gchar *string = NULL; TitleInput *title_input; - glong curpos; + glong curpos = 0; #ifdef DEBUG g_message("f: input_read_tag"); @@ -436,8 +436,10 @@ audmad_config.id3_format : xmms_get_gentitle_format(), title_input); // for connection via proxy, we have to stop transfer once. I can't explain the reason. - vfs_fseek(info->infile, -1, SEEK_SET); // an impossible request - vfs_fseek(info->infile, curpos, SEEK_SET); + if (info->infile != NULL) { + vfs_fseek(info->infile, -1, SEEK_SET); // an impossible request + vfs_fseek(info->infile, curpos, SEEK_SET); + } #ifdef DEBUG g_message("e: input_read_tag");