From 0cbfad6aa4bdffcc4ad1fcc1ea4c53037690e71b Mon Sep 17 00:00:00 2001 From: bertrand Date: Fri, 21 Jun 2002 06:25:48 +0000 Subject: [PATCH] Checked the return value when retrieving the protocol level. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6476 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/cddb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libmpdemux/cddb.c b/libmpdemux/cddb.c index 2efbf3ad98..769304f33c 100644 --- a/libmpdemux/cddb.c +++ b/libmpdemux/cddb.c @@ -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);