screenshooter: print info to log

Print the recording info to Weston log, not stderr.

Also fix the frame counter.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Pekka Paalanen 2013-05-22 18:03:12 +03:00 committed by Kristian Høgsberg
parent 6cd1de33ba
commit d0cbf18d83
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}