summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-08-25 15:12:31 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-08-25 15:12:31 +0100
commite6dd5dd81df848e378bfdddabdecb934dee70b79 (patch)
tree3382d5f947fc41101b97a81a6e00eb0b1ae74f64
parent1714d0fd9d82ee141475f996f4f0f58262355b33 (diff)
downloadxine-lib-e6dd5dd81df848e378bfdddabdecb934dee70b79.tar.gz
xine-lib-e6dd5dd81df848e378bfdddabdecb934dee70b79.tar.bz2
Fix CDDB access on 64-bit.
-rw-r--r--ChangeLog1
-rw-r--r--src/input/input_cdda.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 422f4df17..44644f19d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
xine-lib (1.1.16) 2008-??-??
* Fix reported compilation failures (with C++ programs).
+ * Fix CDDB access in 64-bit builds.
xine-lib (1.1.15) 2008-08-14
* Security fixes:
diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c
index 305ef6381..06ab9d626 100644
--- a/src/input/input_cdda.c
+++ b/src/input/input_cdda.c
@@ -136,7 +136,7 @@ typedef struct {
char *disc_category;
int fd;
- unsigned long disc_id;
+ uint32_t disc_id;
int disc_length;
trackinfo_t *track;
@@ -1902,7 +1902,7 @@ static unsigned int _cdda_cddb_sum(int n) {
}
return ret;
}
-static unsigned long _cdda_calc_cddb_id(cdda_input_plugin_t *this) {
+static uint32_t _cdda_calc_cddb_id(cdda_input_plugin_t *this) {
int i, tsum = 0;
if(this == NULL || (this->cddb.num_tracks <= 0))
@@ -1959,7 +1959,7 @@ static void _cdda_cdindex(cdda_input_plugin_t *this, cdrom_toc *toc) {
/*
* return cbbd disc id.
*/
-static unsigned long _cdda_get_cddb_id(cdda_input_plugin_t *this) {
+static uint32_t _cdda_get_cddb_id(cdda_input_plugin_t *this) {
if(this == NULL || (this->cddb.num_tracks <= 0))
return 0;