mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
245089c9bd
commit
1a50186630
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue