[FFmpeg-devel] [PATCH] ffprobe: flush stdout after each group

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat Jul 2 12:36:46 CEST 2011


On date Saturday 2011-07-02 12:32:48 +0200, Nicolas George encoded:
> Le quartidi 14 messidor, an CCXIX, Stefano Sabatini a écrit :
> > Am I blind or is the patch missing?
> 
> The patch was missing, sorry.
> 
> Regards,
> 
> -- 
>   Nicolas George

> From 294b7730808d5f0d12be0a9ac9e069da7612211e Mon Sep 17 00:00:00 2001
> From: Nicolas George <nicolas.george at normalesup.org>
> Date: Fri, 1 Jul 2011 15:48:04 +0200
> Subject: [PATCH] ffprobe: flush stdout after each group.
> 
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  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);
>  }

OK, thanks.
-- 
FFmpeg = Free Fundamentalist Multimedia Portable Extravagant God


More information about the ffmpeg-devel mailing list