Checked the return value when retrieving the protocol level.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6476 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
bertrand 2002-06-21 06:25:48 +00:00
parent b3b0cc1208
commit 0cbfad6aa4
1 changed files with 4 additions and 1 deletions

View File

@ -529,7 +529,10 @@ cddb_retrieve(cddb_data_t *cddb_data) {
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);