From b883d52980eedb1182c03e4cc8568f72566783ac Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Tue, 29 Jan 2013 17:44:45 +0100 Subject: flush output and use space als separator --- src/advtime.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/advtime.c b/src/advtime.c index 93a4057..581cee7 100644 --- a/src/advtime.c +++ b/src/advtime.c @@ -165,12 +165,14 @@ main(int argc, char **argv) dts = vd->fmt_ctx->streams[0]->cur_dts; print_time(dts); - printf("\t"); + printf(" "); print_time(dts - prev_dts); prev_dts = dts; - if (!frame_flag && !average_flag) + if (!frame_flag && !average_flag) { printf("\n"); + fflush(stdout); + } if (showcut_flag == 1) { snprintf(filename, BUFSIZ, "img/%04i.pgm", i); @@ -183,8 +185,10 @@ main(int argc, char **argv) } } - if (frame_flag || average_flag) + if (frame_flag || average_flag) { printf("\n"); + fflush(stdout); + } pswap(&frame_a, &frame_b); } -- cgit