From 48300827a18b9145bc5d57afee0520c3b226d50f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 2 Feb 2003 05:26:29 +0000 Subject: Change %lld, %llu to G_G[U]INT64_FORMAT globally. Fix bad pointer->integer conversion. Original commit message from CVS: Change %lld, %llu to G_G[U]INT64_FORMAT globally. Fix bad pointer->integer conversion. --- gst-libs/gst/media-info/media-info.c | 7 ++++--- gst-libs/gst/play/play.old.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'gst-libs') diff --git a/gst-libs/gst/media-info/media-info.c b/gst-libs/gst/media-info/media-info.c index 4e8f56b36..e2afd51b4 100644 --- a/gst-libs/gst/media-info/media-info.c +++ b/gst-libs/gst/media-info/media-info.c @@ -531,7 +531,7 @@ gst_media_info_get_stream (GstMediaInfo *info, GstMediaInfoStream *stream) { case GST_FORMAT_TIME: stream->length_time = value; - g_print (" total %s: %lld\n", definition->nick, value); + g_print (" total %s: %" G_GINT64_FORMAT "\n", definition->nick, value); break; default: /* separation is necessary because track_format doesn't resolve to @@ -539,7 +539,7 @@ gst_media_info_get_stream (GstMediaInfo *info, GstMediaInfoStream *stream) if (format == track_format) { stream->length_tracks = value; - g_print (" total %s: %lld\n", definition->nick, value); + g_print (" total %s: %" G_GINT64_FORMAT "\n", definition->nick, value); } else g_print ("warning: unhandled format %s\n", definition->nick); @@ -639,7 +639,8 @@ gst_media_info_find_streaminfo (GstMediaInfo *info) { GstPropsEntry *length; /* substract to get the length */ - GMI_DEBUG("DEBUG: start %lld, end %lld\n", value_start, value_end); + GMI_DEBUG("DEBUG: start %" G_GINT64_FORMAT ", end %" + G_GINT64_FORMAT "\n", value_start, value_end); value_end -= value_start; g_print ("DEBUG: length: %d\n", (int) value_end); length = gst_props_entry_new ("length", GST_PROPS_INT ((int) value_end)); diff --git a/gst-libs/gst/play/play.old.c b/gst-libs/gst/play/play.old.c index 4d3daecd3..560bed18c 100644 --- a/gst-libs/gst/play/play.old.c +++ b/gst-libs/gst/play/play.old.c @@ -587,7 +587,7 @@ gst_play_get_length_callback (GstPlay *play) g_mutex_unlock(play->video_bin_mutex); } if (query_worked){ - g_print("got length %lld\n", value); + g_print("got length %" G_GINT64_FORMAT "\n", value); g_signal_emit (G_OBJECT (play), gst_play_signals [STREAM_LENGTH], 0, value); play->length_nanos = value; return FALSE; -- cgit v1.2.1