From 5c3f3fd3dab3e399c473790f55272c5d6aec2764 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Fri, 5 Sep 2014 01:36:15 +1000 Subject: win32: add tmpfile() replacement The Windows version of tmpfile is actually pretty broken. It tries to create the file in the root directory of the current drive, which means on Vista and up, it normally fails due to insufficient permissions. Replace it with a version that uses GetTempPath. Also remove the Windows-specific note about automatic deletion of the cache file. FILE_FLAG_DELETE_ON_CLOSE is available in NT, and it should be pretty reliable. --- DOCS/man/options.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 901dc74889..73378d5ad3 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -1650,7 +1650,7 @@ Window .. note:: This does not affect the normal screensaver operation in any way. - + ``--no-keepaspect``, ``--keepaspect`` ``--no-keepaspect`` will always stretch the video to window size, and will disable the window manager hints that force the window aspect ratio. @@ -2819,8 +2819,7 @@ Cache Instead, an invisible temporary file is created. It depends on your C library where this file is created (usually ``/tmp/``), and whether filename is visible (the ``tmpfile()`` function is used). On some - systems, automatic deletion of the cache file might not be guaranteed - (like on MS Windows). + systems, automatic deletion of the cache file might not be guaranteed. If you want to use a file cache, this mode is recommended, because it doesn't break ordered chapters or ``--audio-file``. These modes open -- cgit v1.2.3