From 1a50186630000fbd9097b042b54cc787c9876a12 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 10 Nov 2009 11:55:34 -0300 Subject: [PATCH] queue2: fix printf format Cast the variable to gint to conform to the printf format used. It is casted rather than changing the format because the message is created with a cast to gint too. --- plugins/elements/gstqueue2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index 8aee01b..52fd637 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -646,7 +646,7 @@ update_buffering (GstQueue2 * queue) mode = GST_BUFFERING_STREAM; } - GST_DEBUG_OBJECT (queue, "buffering %d percent", percent); + GST_DEBUG_OBJECT (queue, "buffering %d percent", (gint) percent); message = gst_message_new_buffering (GST_OBJECT_CAST (queue), (gint) percent); gst_message_set_buffering_stats (message, mode, @@ -655,7 +655,7 @@ update_buffering (GstQueue2 * queue) gst_element_post_message (GST_ELEMENT_CAST (queue), message); } else { - GST_DEBUG_OBJECT (queue, "filled %d percent", percent); + GST_DEBUG_OBJECT (queue, "filled %d percent", (gint) percent); } #undef GET_PERCENT -- 2.7.4