summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-21 06:25:48 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-21 06:25:48 +0000
commit0cbfad6aa4bdffcc4ad1fcc1ea4c53037690e71b (patch)
tree4b60ed1e8ded9eadff8092b6ab653fc6a5c3ba3e /libmpdemux
parentb3b0cc1208d7582bf86203c2650e4dd6f9fc6399 (diff)
downloadmpv-0cbfad6aa4bdffcc4ad1fcc1ea4c53037690e71b.tar.bz2
mpv-0cbfad6aa4bdffcc4ad1fcc1ea4c53037690e71b.tar.xz
Checked the return value when retrieving the protocol level.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6476 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-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);