[Rhythmbox-devel] [PATCH] Don't fail to compile due to warnings on 64-bit
- From: Steven Walter <stevenrwalter gmail com>
- To: rhythmbox-devel gnome org
- Subject: [Rhythmbox-devel] [PATCH] Don't fail to compile due to warnings on 64-bit
- Date: Tue, 27 Mar 2007 21:49:36 -0400
I had to make these simple changes to get the subversion code to build
on my 64-bit box.
--
-Steven Walter <stevenrwalter gmail com>
Index: backends/gstreamer/rb-player-gst-xfade.c
===================================================================
--- backends/gstreamer/rb-player-gst-xfade.c (revision 4985)
+++ backends/gstreamer/rb-player-gst-xfade.c (working copy)
@@ -809,7 +809,7 @@
format = GST_FORMAT_TIME;
gst_element_query_position (stream->volume, &format, &stream_pos);
if (stream_pos != -1) {
- rb_debug ("adjusting base time: %lld - %lld => %lld", stream->base_time, stream_pos, stream->base_time - stream_pos);
+ rb_debug ("adjusting base time: %lld - %lld => %lld", (long long int)stream->base_time, (long long int)stream_pos, (long long int)(stream->base_time - stream_pos));
stream->base_time -= stream_pos;
}
}
@@ -1405,7 +1405,7 @@
gint64 duration;
GstFormat format;
gst_message_parse_duration (message, &format, &duration);
- rb_debug ("got duration %lld for stream %s", duration, stream->uri);
+ rb_debug ("got duration %lld for stream %s", (long long int)duration, stream->uri);
}
break;
@@ -3035,10 +3035,10 @@
stream->seek_target = time * GST_SECOND;
if (stream->state == PAUSED) {
- rb_debug ("seeking in paused stream %s; target %lld", stream->uri, stream->seek_target);
+ rb_debug ("seeking in paused stream %s; target %lld", stream->uri, (long long int)stream->seek_target);
perform_seek (stream);
} else {
- rb_debug ("unlinking playing stream %s to seek to %lld", stream->uri, stream->seek_target);
+ rb_debug ("unlinking playing stream %s to seek to %lld", stream->uri, (long long int)stream->seek_target);
stream->state = SEEKING;
unlink_and_block_stream (stream);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]