[MPlayer-cvslog] r34879 - trunk/libvo/vo_yuv4mpeg.c
reimar
subversion at mplayerhq.hu
Fri Apr 27 16:33:07 CEST 2012
Author: reimar
Date: Fri Apr 27 16:33:07 2012
New Revision: 34879
Log:
vo_yuv4mpeg: flush userspace FILE buffers after each frame.
Potentially reduces delay when piping to stdout/fifo.
Modified:
trunk/libvo/vo_yuv4mpeg.c
Modified: trunk/libvo/vo_yuv4mpeg.c
==============================================================================
--- trunk/libvo/vo_yuv4mpeg.c Wed Apr 25 03:07:11 2012 (r34878)
+++ trunk/libvo/vo_yuv4mpeg.c Fri Apr 27 16:33:07 2012 (r34879)
@@ -170,6 +170,7 @@ static void vo_y4m_write(const void *ptr
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)
More information about the MPlayer-cvslog
mailing list