[FFmpeg-cvslog] ffprobe: flush stdout after each group.

Nicolas George git at videolan.org
Sat Jul 2 12:54:03 CEST 2011


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Fri Jul  1 15:48:04 2011 +0200| [25119a7f082ba2432df528f70348f5bd83aa8c07] | committer: Nicolas George

ffprobe: flush stdout after each group.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25119a7f082ba2432df528f70348f5bd83aa8c07
---

 ffprobe.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ffprobe.c b/ffprobe.c
index 7da77ed..61ddc3d 100644
--- 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)



More information about the ffmpeg-cvslog mailing list