[vlc-devel] [PATCH] non-blocking filewriter

Rémi Denis-Courmont remi at remlab.net
Tue Apr 28 11:34:38 CEST 2009


On Tue, 28 Apr 2009 11:46:30 +0300, Jarmo Torvinen
<jarmo.torvinen at jutel.fi> wrote:
> The patch adds following parameters to file sout plugin:
> 
> "sout-file-non-block"               enables/disable the non-blocking mode

Perhaps this could be autodetected with fstat() instead of adding yet
another command line option?

> "sout-file-non-block-bufsize"    sets the maximum buffer size for
> non-blocking writing in kilobytes.
> 
> If the non-blocking mode is enabled, the writer is replaced with new
> writer that adds data to a fifo buffer. The buffer is read by a
> writer thread writing data to the final destination and freeing the
> blocks.

You mean the kernel FIFO buffer is too small and VLC gets jerky?

-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list