From 1fa5e7b89aa8ce119779e14f529b556c85c90549 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 5 Nov 2009 21:58:38 +0000 Subject: [PATCH] mms: printf format fixes --- ext/libmms/gstmms.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ext/libmms/gstmms.c b/ext/libmms/gstmms.c index e079819377..97e34646ff 100644 --- a/ext/libmms/gstmms.c +++ b/ext/libmms/gstmms.c @@ -288,8 +288,8 @@ gst_mms_do_seek (GstBaseSrc * src, GstSegment * segment) return FALSE; } start = mmsx_get_current_pos (mmssrc->connection); - GST_LOG_OBJECT (mmssrc, "sought to %f sec, offset after seek: %lld\n", - (double) segment->start / GST_SECOND, start); + GST_INFO_OBJECT (mmssrc, "sought to %" GST_TIME_FORMAT ", offset after " + "seek: %" G_GINT64_FORMAT, GST_TIME_ARGS (segment->start), start); } else if (segment->format == GST_FORMAT_BYTES) { start = mmsx_seek (NULL, mmssrc->connection, segment->start, SEEK_SET); /* mmsx_seek will close and reopen the connection when seeking with the @@ -298,12 +298,11 @@ gst_mms_do_seek (GstBaseSrc * src, GstSegment * segment) GST_DEBUG_OBJECT (mmssrc, "connection broken during seek"); return FALSE; } - GST_DEBUG_OBJECT (mmssrc, - "sought to: %" G_GINT64_FORMAT " bytes, result: %lld", segment->start, - start); + GST_INFO_OBJECT (mmssrc, "sought to: %" G_GINT64_FORMAT " bytes, " + "result: %" G_GINT64_FORMAT, segment->start, start); } else { - GST_DEBUG_OBJECT (mmssrc, "unsupported seek segment format: %d", - (int) segment->format); + GST_DEBUG_OBJECT (mmssrc, "unsupported seek segment format: %s", + GST_STR_NULL (gst_format_get_name (segment->format))); return FALSE; } gst_segment_init (segment, GST_FORMAT_BYTES); -- 2.34.1