[FFmpeg-devel] [RFC] av_tempfile()
Reimar.Doeffinger at gmx.de
Sun Oct 16 21:08:32 CEST 2011
On Sun, Oct 16, 2011 at 08:57:52PM +0200, Reimar Döffinger wrote:
> If that's not good enough, then think about the requirements and then
> implement a function that matches them and describe those in the
Not in the case of the cache I think those are
1) The user may want to specify a file name
1a) in that case, he may or may not want to reuse any existing data
if the protocol is seekable in principle (e.g. http).
2) The user may want to specific a directory to create cache files in
(xdg I think specifies a per-user cache directory, too).
3) The user might want a temp file to be used, but not the default temp
path. It would most likely be expected to follow the system rules
for temp files. After reading up on it, tempnam actually seems to
respect that (so I was wrong about its behaviour).
It seems mkstemp does not though.
More information about the ffmpeg-devel