diff options
author | Jan Klemkow <j.klemkow@wemelug.de> | 2013-01-29 17:44:45 +0100 |
---|---|---|
committer | Jan Klemkow <j.klemkow@wemelug.de> | 2013-01-29 17:45:38 +0100 |
commit | b883d52980eedb1182c03e4cc8568f72566783ac (patch) | |
tree | 3a5361a04415b79bbbec77a9c64d3cda22d7c3ee /src | |
parent | 181663291357bfad4d1e630f3c5932847a2a0520 (diff) | |
download | advtime-b883d52980eedb1182c03e4cc8568f72566783ac.tar.gz advtime-b883d52980eedb1182c03e4cc8568f72566783ac.tar.bz2 advtime-b883d52980eedb1182c03e4cc8568f72566783ac.zip |
flush output and use space als separator
Diffstat (limited to 'src')
-rw-r--r-- | src/advtime.c | 10 |
1 files changed, 7 insertions, 3 deletions
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); } |