[PATCH weston 09/18] screenshooter: print info to log
ppaalanen at gmail.com
ppaalanen at gmail.com
Wed May 22 08:03:12 PDT 2013
From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Print the recording info to Weston log, not stderr.
Also fix the frame counter.
Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
src/screenshooter.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/screenshooter.c b/src/screenshooter.c
index 6f53fad..dde052f 100644
--- a/src/screenshooter.c
+++ b/src/screenshooter.c
@@ -432,6 +432,7 @@ weston_recorder_frame_notify(struct wl_listener *listener, void *data)
}
pixman_region32_fini(&damage);
+ recorder->count++;
}
static void
@@ -525,13 +526,13 @@ recorder_binding(struct weston_seat *seat, uint32_t time, uint32_t key, void *da
recorder = container_of(listener, struct weston_recorder,
frame_listener);
- fprintf(stderr,
+ weston_log(
"stopping recorder, total file size %dM, %d frames\n",
recorder->total / (1024 * 1024), recorder->count);
weston_recorder_destroy(recorder);
} else {
- fprintf(stderr, "starting recorder, file %s\n", filename);
+ weston_log("starting recorder, file %s\n", filename);
weston_recorder_create(output, filename);
}
}
--
1.8.1.5
More information about the wayland-devel
mailing list