1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Fixes 64-bit compile issue from r3372

This commit is contained in:
Tyler Rhodes 2011-06-10 09:19:30 +00:00
parent 272841ab73
commit 006e085b7d

View File

@ -126,7 +126,8 @@ SongLoader::Result SongLoader::LoadAudioCD() {
// Init song
Song song;
quint64 duration;
if (gst_tag_list_get_uint64 (GST_CDDA_BASE_SRC(cdda)->tracks[track_number-1].tags, GST_TAG_DURATION, &duration)) {
// quint64 == ulonglong and guint64 == ulong, therefore we must cast
if (gst_tag_list_get_uint64 (GST_CDDA_BASE_SRC(cdda)->tracks[track_number-1].tags, GST_TAG_DURATION, (guint64*) &duration)) {
song.set_length_nanosec(duration);
}
song.set_valid(true);