diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-11-12 15:38:38 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-11-12 15:38:38 +0100 |
commit | a0d7d7399010feada23257e8165b74c3400aedfc (patch) | |
tree | 34a9f8edd56d9c4ae5b71c6340918fe1de4a57b4 /modules/vidloop/vidloop.c | |
parent | ced858af8f4c99e0a4ebe2a55aa1cabb6ef09904 (diff) |
move some printing from stderr to stdout (ref #320)
Diffstat (limited to 'modules/vidloop/vidloop.c')
-rw-r--r-- | modules/vidloop/vidloop.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |