# HG changeset patch # User nhjm449 # Date 1145686399 25200 # Node ID b3ca8a87db7f55aed54ee1f752fc5716ec04aa86 # Parent ebb63be7721c0c86799f9a4b762c65f29971b2eb [svn] - CDDB query fix diff -r ebb63be7721c -r b3ca8a87db7f Plugins/Input/cdaudio/cddb.c --- a/Plugins/Input/cdaudio/cddb.c Thu Apr 20 14:07:57 2006 -0700 +++ b/Plugins/Input/cdaudio/cddb.c Fri Apr 21 23:13:19 2006 -0700 @@ -173,7 +173,7 @@ { /* * Query the cddb-server for the cd. - * Returns the *real* diskid and category. + * Returns the *real* discid and category. */ gint sock; @@ -221,8 +221,8 @@ return FALSE; } } - cddb_info->category = g_strdup(response[1]); - cddb_info->discid = strtoul(response[2], NULL, 16); + cddb_info->category = g_strdup(response[0]); + cddb_info->discid = strtoul(response[1], NULL, 16); break; case 211: /* multiple matches - use first match */ @@ -238,8 +238,8 @@ return FALSE; } } - cddb_info->category = g_strdup(response[1]); - cddb_info->discid = strtoul(response[2], NULL, 16); + cddb_info->category = g_strdup(response[0]); + cddb_info->discid = strtoul(response[1], NULL, 16); break; default: /* FIXME: Handle other 2xx */ g_strfreev(response);