# HG changeset patch # User reimar # Date 1335537187 0 # Node ID 9c1083333ad1e10753a7bdd1e5bc7afc3310281f # Parent 89c7cd996a3652d0d5b3c3d0823557fc90ac6329 vo_yuv4mpeg: flush userspace FILE buffers after each frame. Potentially reduces delay when piping to stdout/fifo. diff -r 89c7cd996a36 -r 9c1083333ad1 libvo/vo_yuv4mpeg.c --- a/libvo/vo_yuv4mpeg.c Wed Apr 25 01:07:11 2012 +0000 +++ b/libvo/vo_yuv4mpeg.c Fri Apr 27 14:33:07 2012 +0000 @@ -170,6 +170,7 @@ if (fwrite(ptr, 1, num_bytes, yuv_out) != num_bytes) mp_msg(MSGT_VO,MSGL_ERR, MSGTR_VO_YUV4MPEG_OutFileWriteError); + fflush(yuv_out); } static int write_last_frame(void)