From e77b1b0e38f11305828356e136bc54633fceafd5 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 12 Sep 2004 22:57:26 +0000 Subject: Fixes: #151879, #151881, #151882, #151883, #151884, #151886, #151887, #152102, #152247. Original commit message from CVS: Fixes: #151879, #151881, #151882, #151883, #151884, #151886, #151887, #152102, #152247. * examples/indexing/indexmpeg.c: 64-bit warning fixes. * examples/seeking/cdparanoia.c: same * examples/seeking/cdplayer.c: same * examples/seeking/seek.c: same * examples/seeking/spider_seek.c: same * examples/seeking/vorbisfile.c: same * examples/stats/mp2ogg.c: same * ext/esd/esdsink.c: (gst_esdsink_class_init), (gst_esdsink_dispose): Dispose of element properly. * ext/ivorbis/vorbisfile.c: (gst_ivorbisfile_seek): 64-bit warning fixes. * ext/nas/nassink.c: (gst_nassink_class_init), (gst_nassink_dispose): Dispose of element correctly. * gst/wavenc/gstwavenc.c: (gst_wavenc_chain): Fix leak. * sys/ximage/ximagesink.c: (gst_ximagesink_check_xshm_calls), (gst_ximagesink_ximage_new), (gst_ximagesink_ximage_destroy): Fix 64-bit warning. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_check_xshm_calls), (gst_xvimagesink_xvimage_new), (gst_xvimagesink_xvimage_destroy): Fix 64-bit warning. --- examples/seeking/cdparanoia.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'examples/seeking/cdparanoia.c') diff --git a/examples/seeking/cdparanoia.c b/examples/seeking/cdparanoia.c index c4a58cf8..fd41187e 100644 --- a/examples/seeking/cdparanoia.c +++ b/examples/seeking/cdparanoia.c @@ -28,10 +28,10 @@ get_position_info (GstElement * cdparanoia) if (format == GST_FORMAT_TIME) { position /= GST_SECOND; - g_print ("%s: %lld:%02lld", definition->nick, position / 60, - position % 60); + g_print ("%s: %" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT, + definition->nick, position / 60, position % 60); } else { - g_print ("%s: %lld", definition->nick, position); + g_print ("%s: %" G_GINT64_FORMAT, definition->nick, position); } formats++; @@ -73,10 +73,10 @@ get_track_info (GstElement * cdparanoia) if (res) { if (format == GST_FORMAT_TIME) { total /= GST_SECOND; - g_print ("%s total: %lld:%02lld\n", definition->nick, total / 60, - total % 60); + g_print ("%s total: %" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT "\n", + definition->nick, total / 60, total % 60); } else - g_print ("%s total: %lld\n", definition->nick, total); + g_print ("%s total: %" G_GINT64_FORMAT "\n", definition->nick, total); if (format == track_format) total_tracks = total; @@ -112,7 +112,9 @@ get_track_info (GstElement * cdparanoia) if (i > 0) { gint64 length = time - time_count; - g_print ("track %d: %lld:%02lld -> %lld:%02lld, length: %lld:%02lld\n", + g_print ("track %d: %" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT + " -> %" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT ", length: %" + G_GINT64_FORMAT ":%02" G_GINT64_FORMAT "\n", i - 1, time_count / 60, time_count % 60, time / 60, time % 60, length / 60, length % 60); -- cgit v1.2.1