]> git.sesse.net Git - ffmpeg/commitdiff
ffprobe: flush stdout after each group.
authorNicolas George <nicolas.george@normalesup.org>
Fri, 1 Jul 2011 13:48:04 +0000 (15:48 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Sat, 2 Jul 2011 10:42:39 +0000 (12:42 +0200)
ffprobe.c

index 7da77eda2c0ac23a384292f5c02b5d7e3ef3cf4c..61ddc3d5eeba107fe3937e7572e83281389a7784 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -143,6 +143,7 @@ static void show_packet(AVFormatContext *fmt_ctx, AVPacket *pkt)
     printf("pos=%"PRId64"\n"   , pkt->pos);
     printf("flags=%c\n"        , pkt->flags & AV_PKT_FLAG_KEY ? 'K' : '_');
     printf("[/PACKET]\n");
+    fflush(stdout);
 }
 
 static void show_packets(AVFormatContext *fmt_ctx)
@@ -231,6 +232,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
         printf("TAG:%s=%s\n", tag->key, tag->value);
 
     printf("[/STREAM]\n");
+    fflush(stdout);
 }
 
 static void show_format(AVFormatContext *fmt_ctx)
@@ -257,6 +259,7 @@ static void show_format(AVFormatContext *fmt_ctx)
         printf("TAG:%s=%s\n", tag->key, tag->value);
 
     printf("[/FORMAT]\n");
+    fflush(stdout);
 }
 
 static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)