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/cdplayer.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'examples/seeking/cdplayer.c') diff --git a/examples/seeking/cdplayer.c b/examples/seeking/cdplayer.c index d83c78e6..afccaa84 100644 --- a/examples/seeking/cdplayer.c +++ b/examples/seeking/cdplayer.c @@ -39,8 +39,8 @@ format_value (GtkScale * scale, gdouble value) seconds = (gint64) real / GST_SECOND; subseconds = (gint64) real / (GST_SECOND / 100); - return g_strdup_printf ("%02lld:%02lld:%02lld", - seconds / 60, seconds % 60, subseconds % 100); + return g_strdup_printf ("%02" G_GINT64_FORMAT ":%02" G_GINT64_FORMAT ":%02" + G_GINT64_FORMAT, seconds / 60, seconds % 60, subseconds % 100); } typedef struct @@ -77,7 +77,7 @@ query_durations () format = seek_formats[i].format; res = gst_element_query (element, GST_QUERY_TOTAL, &format, &value); if (res) { - g_print ("%s %13lld | ", seek_formats[i].name, value); + g_print ("%s %13" G_GINT64_FORMAT " | ", seek_formats[i].name, value); } else { g_print ("%s %13.13s | ", seek_formats[i].name, "*NA*"); } @@ -106,7 +106,7 @@ query_positions () format = seek_formats[i].format; res = gst_element_query (element, GST_QUERY_POSITION, &format, &value); if (res) { - g_print ("%s %13lld | ", seek_formats[i].name, value); + g_print ("%s %13" G_GINT64_FORMAT " | ", seek_formats[i].name, value); } else { g_print ("%s %13.13s | ", seek_formats[i].name, "*NA*"); } @@ -183,9 +183,11 @@ stop_seek (GtkWidget * widget, GdkEventButton * event, gpointer user_data) while (walk) { GstElement *seekable = GST_ELEMENT (walk->data); - g_print ("seek to %lld on element %s\n", real, GST_ELEMENT_NAME (seekable)); - s_event = gst_event_new_seek (GST_FORMAT_TIME | - GST_SEEK_METHOD_SET | GST_SEEK_FLAG_FLUSH, real); + g_print ("seek to %" G_GINT64_FORMAT " on element %s\n", real, + GST_ELEMENT_NAME (seekable)); + s_event = + gst_event_new_seek (GST_FORMAT_TIME | GST_SEEK_METHOD_SET | + GST_SEEK_FLAG_FLUSH, real); res = gst_element_send_event (seekable, s_event); -- cgit v1.2.1