[vlc-devel] [PATCH] non-blocking filewriter (version 4)

Jarmo Torvinen jarmo.torvinen at jutel.fi
Tue May 5 10:28:55 CEST 2009


Here is the version 4, which is using the S_ISFIFO() macro to test for the 
fifo pipe.
By the way, there is one issue / feature depending on your view on this 
patch: on Close() the plugin will not flush rest of the data on the buffer 
to the pipe, it will just discard it. 

In real life, this means that if you do:

mkfifo /tmp/fifo
cat /tmp/fifo > output.ts &
vlc input.ts 

the resulting output.ts will not contain all the data in input.ts remuxed, 
because when vlc finishes muxing the data to the output plugin buffer, it 
calls the file output module's Close() and the rest of the buffer gets 
discarded. In continuous real time transcoding, this is not an issue 

Jarmo Torvinen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Non-blocking-file-writer-implementation.patch
Type: application/octet-stream
Size: 11006 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090505/a28840eb/attachment.obj>

More information about the vlc-devel mailing list