Mercurial > audlegacy-plugins
changeset 791:91d2b302f479 trunk
[svn] - only perform vfs fseek against info::infile if it is available.
author | nenolod |
---|---|
date | Wed, 07 Mar 2007 05:08:55 -0800 |
parents | c199c1f23921 |
children | 2b2313fc1ddc |
files | ChangeLog src/madplug/input.c |
diffstat | 2 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 <yaz@cc.rim.or.jp> + 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 <yaz@cc.rim.or.jp> revision [1676] revising vfs_fread() check code.
--- 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");