changeset 953:b3ca8a87db7f trunk

[svn] - CDDB query fix
author nhjm449
date Fri, 21 Apr 2006 23:13:19 -0700
parents ebb63be7721c
children 53df4e214988
files Plugins/Input/cdaudio/cddb.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);