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

Jarmo Torvinen jarmo.torvinen at jutel.fi
Tue Apr 28 10:46:30 CEST 2009


Non-blocking file writer
----------------------------
0002-Non-blocking-file-writer-implementation.patch
0008-nonblocking-filewriter-bugfix-release-thread-objec.patch

Okay, I know your general opinion on non-blocking writing. Yet we had to 
implement this for our case to use with linux named-pipes, as we 
propagate data via them from vlc instance to another. Feel free to ignore 
these.
The patch adds following parameters to file sout plugin:

"sout-file-non-block"               enables/disable the non-blocking mode
"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.


Jarmo Torvinen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Non-blocking-file-writer-implementation.patch
Type: application/octet-stream
Size: 11097 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090428/a9e16b3a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-nonblocking-filewriter-bugfix-release-thread-objec.patch
Type: application/octet-stream
Size: 811 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090428/a9e16b3a/attachment-0001.obj>


More information about the vlc-devel mailing list