changeset 6475:837ca6fd4adf

Checked the return value when retrieving the protocol level.
author bertrand
date Fri, 21 Jun 2002 06:25:48 +0000
parents 654b26c941e5
children a48a7315ed88
files libmpdemux/cddb.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/cddb.c	Fri Jun 21 06:15:36 2002 +0000
+++ b/libmpdemux/cddb.c	Fri Jun 21 06:25:48 2002 +0000
@@ -529,7 +529,10 @@
 	cddb_data->xmcd_file = NULL;
 
 	cddb_create_hello(cddb_data);
-	cddb_get_proto_level(cddb_data);
+	if( cddb_get_proto_level(cddb_data)<0 ) {
+		printf("Failed to get the protocol level\n");
+		return -1;
+	}
 
 	//cddb_get_freedb_sites(&cddb_data);