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/vorbisfile.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'examples/seeking/vorbisfile.c') diff --git a/examples/seeking/vorbisfile.c b/examples/seeking/vorbisfile.c index afb4ecc4..d193642f 100644 --- a/examples/seeking/vorbisfile.c +++ b/examples/seeking/vorbisfile.c @@ -75,10 +75,11 @@ print_lbs_info (struct probe_context *context, gint stream) if (format == GST_FORMAT_TIME) { value_end /= (GST_SECOND / 100); - g_print (" %s: %lld:%02lld.%02lld\n", definition->nick, - value_end / 6000, (value_end / 100) % 60, (value_end % 100)); + g_print (" %s: %" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT ".%02" + G_GINT64_FORMAT "\n", definition->nick, value_end / 6000, + (value_end / 100) % 60, (value_end % 100)); } else { - g_print (" %s: %lld\n", definition->nick, value_end); + g_print (" %s: %" G_GINT64_FORMAT "\n", definition->nick, value_end); } } else g_print (" could not get logical stream %s\n", definition->nick); @@ -181,12 +182,13 @@ collect_stream_properties (struct probe_context *context) if (res) { if (format == GST_FORMAT_TIME) { value /= (GST_SECOND / 100); - g_print (" total %s: %lld:%02lld.%02lld\n", definition->nick, - value / 6000, (value / 100) % 60, (value % 100)); + g_print (" total %s: %" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT ".%02" + G_GINT64_FORMAT "\n", definition->nick, value / 6000, + (value / 100) % 60, (value % 100)); } else { if (format == context->ls_format) context->total_ls = value; - g_print (" total %s: %lld\n", definition->nick, value); + g_print (" total %s: %" G_GINT64_FORMAT "\n", definition->nick, value); } } } -- cgit v1.2.1