]> git.sesse.net Git - vlc/commit
access_out_file: fix append mode, relax stdout support, simplify
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 25 May 2008 15:06:00 +0000 (18:06 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 25 May 2008 15:06:57 +0000 (18:06 +0300)
commit785b6e2bf9a83baee6becb9b324824ce99fa331c
treef313acaac6f80844c9c66284e717a497dd2fcb22
parent77acf509d89e39c0bc48b5bdbb643b2e11ce2373
access_out_file: fix append mode, relax stdout support, simplify

O_APPEND puts the file pointer to the end after _each_ write.
We want to put it at the end (only) after open.
Also allow reading/seeking stdout, as it could be a redirected file
(of course, it won't work if it's a terminal)
modules/access_output/file.c