[FFmpeg-cvslog] ffmpeg: disable buffering for stderr, needed for win32 runtime

Michael Niedermayer michaelni at gmx.at
Sun Sep 30 15:35:52 CEST 2012


On Sun, Sep 30, 2012 at 03:26:13PM +0200, The makemkv authors wrote:
> ffmpeg | branch: master | The makemkv authors <?@makemkv.com> | Sun Sep 30 15:02:03 2012 +0200| [89a823ace9dbbb47cbea9b11756295c76fdc366e] | committer: Michael Niedermayer
> 
> ffmpeg: disable buffering for stderr, needed for win32 runtime
> 
> Found in http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.7.7.patch.gz
> 
> Commit message by commiter
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89a823ace9dbbb47cbea9b11756295c76fdc366e
> ---
> 
>  ffmpeg.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 3eb15a6..8a74ad1 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -3120,6 +3120,8 @@ int main(int argc, char **argv)
>  
>      reset_options(&o, 0);
>  
> +    setvbuf(stderr,NULL,_IONBF,0); /* win32 runtime needs this */

btw, if this works on all platforms something similar should be
needed for ffprobe and the other tools

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20120930/1ce42692/attachment.asc>


More information about the ffmpeg-cvslog mailing list