summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/cddb.c5
1 files changed, 4 insertions, 1 deletions
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);