mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
fpsdisplay: Use G_GUINT64_FORMAT instead of %llu
Fixes compiler warnings on 64 bit architectures.
This commit is contained in:
parent
bbfff812bf
commit
6bc160a0dc
1 changed files with 6 additions and 4 deletions
|
@ -373,12 +373,14 @@ display_current_fps (gpointer data)
|
||||||
*/
|
*/
|
||||||
if (dr == 0.0) {
|
if (dr == 0.0) {
|
||||||
g_snprintf (fps_message, 255,
|
g_snprintf (fps_message, 255,
|
||||||
"rendered: %llu\t dropped: %llu\t current: %.2f\t average: %.2f",
|
"rendered: %" G_GUINT64_FORMAT "\t dropped: %" G_GUINT64_FORMAT
|
||||||
frames_rendered, frames_dropped, rr, average_fps);
|
"\t current: %.2f\t average: %.2f", frames_rendered, frames_dropped, rr,
|
||||||
|
average_fps);
|
||||||
} else {
|
} else {
|
||||||
g_snprintf (fps_message, 255,
|
g_snprintf (fps_message, 255,
|
||||||
"rendered: %llu\t dropped: %llu\t fps: %.2f\t drop rate: %.2f",
|
"rendered: %" G_GUINT64_FORMAT "\t dropped: %" G_GUINT64_FORMAT
|
||||||
frames_rendered, frames_dropped, rr, dr);
|
"\t fps: %.2f\t drop rate: %.2f", frames_rendered, frames_dropped, rr,
|
||||||
|
dr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self->use_text_overlay) {
|
if (self->use_text_overlay) {
|
||||||
|
|
Loading…
Reference in a new issue