From 933dec0e29ec4d2cb83474279a6c52d62fdb7310 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Thu, 5 Feb 2015 15:06:42 +0200 Subject: file: Add an option for following a file that is being written MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using this requires setting the rw_timeout option to make it terminate, alternatively using the interrupt callback (if used via the API). Signed-off-by: Martin Storsjö --- doc/protocols.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/protocols.texi b/doc/protocols.texi index c0663ac76a..c136c74e41 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -69,6 +69,17 @@ The av* tools default to the file protocol, that is a resource specified with the name "FILE.mpeg" is interpreted as the URL "file:FILE.mpeg". +This protocol accepts the following options: + +@table @option +@item follow +If set to 1, the protocol will retry reading at the end of the file, allowing +reading files that still are being written. In order for this to terminate, +you either need to use the rw_timeout option, or use the interrupt callback +(for API users). + +@end table + @section gopher Gopher protocol. -- cgit v1.2.3