From a0d7d7399010feada23257e8165b74c3400aedfc Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 12 Nov 2017 15:38:38 +0100 Subject: move some printing from stderr to stdout (ref #320) --- modules/vidloop/vidloop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/vidloop/vidloop.c') diff --git a/modules/vidloop/vidloop.c b/modules/vidloop/vidloop.c index 52f4359..d99fa49 100644 --- a/modules/vidloop/vidloop.c +++ b/modules/vidloop/vidloop.c @@ -285,7 +285,7 @@ static int enable_codec(struct video_loop *vl, const char *name) static void print_status(struct video_loop *vl) { - (void)re_fprintf(stderr, + (void)re_fprintf(stdout, "\rstatus:" " [%s] [%s] intra=%zu " " EFPS=%.1f %u kbit/s \r", @@ -293,6 +293,7 @@ static void print_status(struct video_loop *vl) vl->vc_dec ? vl->vc_dec->name : "", vl->stat.n_intra, vl->stat.efps, vl->stat.bitrate); + fflush(stdout); } -- cgit v1.2.3