[totem] backend: Fix build warnings about string format
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Fix build warnings about string format
- Date: Wed, 3 Jul 2013 13:55:35 +0000 (UTC)
commit 42ecd788983f62c121c44874191c396ce98ba52b
Author: Alban Browaeys <prahal yahoo com>
Date: Wed Jun 26 11:02:50 2013 +0200
backend: Fix build warnings about string format
Fixes warning about the string format specifiers not matching
the type of the arguments.
src/backend/bacon-video-widget.c: In function 'bvw_download_buffering_done':
src/backend/bacon-video-widget.c:1929:5: warning: format '%lld' expects argument of type 'long long int',
but argument 8 has type 'gint64' [-Wformat=]
GST_DEBUG ("Buffering left: %lld * %f = %lld < %lld",
^
src/backend/bacon-video-widget.c:1929:5: warning: format '%lld' expects argument of type 'long long int',
but argument 10 has type 'double' [-Wformat=]
src/backend/bacon-video-widget.c:1929:5: warning: format '%lld' expects argument of type 'long long int',
but argument 11 has type 'gint64' [-Wformat=]
https://bugzilla.gnome.org/show_bug.cgi?id=703369
src/backend/bacon-video-widget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index aaf14fb..60e0578 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -1926,7 +1926,7 @@ bvw_download_buffering_done (BaconVideoWidget *bvw)
}
if (bvw->priv->buffering_left * BUFFERING_LEFT_RATIO < bvw->priv->stream_length - bvw->priv->current_time)
{
- GST_DEBUG ("Buffering left: %lld * %f = %lld < %lld",
+ GST_DEBUG ("Buffering left: %" G_GINT64_FORMAT " * %f, = %f < %" G_GUINT64_FORMAT,
bvw->priv->buffering_left, BUFFERING_LEFT_RATIO,
bvw->priv->buffering_left * BUFFERING_LEFT_RATIO,
bvw->priv->stream_length - bvw->priv->current_time);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]