Mercurial > audlegacy-plugins
diff src/madplug/input.c @ 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 | 354c69a939bc |
| children | 19e08e104ba6 |
line wrap: on
line diff
--- 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");
