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.
This commit is contained in:
Thiago Santos 2009-11-10 11:55:34 -03:00
parent 245089c9bd
commit 1a50186630

View file

@ -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