[FFmpeg-devel] [PATCH] Enable dash output to work when the output isn't a local file
h.leppkes at gmail.com
Mon Jan 4 20:54:33 CET 2016
On 04.01.2016 20:10, Derek Buitenhuis wrote:
> On 1/4/2016 6:05 PM, Ganesh Ajjanagadde wrote:
>> Personally, I think it should be ok to use rename here for now,
>> especially since even projects like Python had trouble with this
>> aspect: https://bugs.python.org/issue8828. Someone with greater
>> Windows expertise can then examine the validity of
>> where there seems to be a lack of clarity, and perhaps make a better
>> effort at an atomic rename operation for Windows.
> Windows API can lock files from read/write by other procs, which may "emulated"
> it... kinda. Probably a bad idea.
We don't really need to discuss this now though, the overall point is
that it uses rename now through ff_rename, and the new call should also
use rename on all the same systems.
rename is used unconditionally in ff_rename as far as I can tell, so it
would probably be OK to remove the unistd.h check in file.c for rename?
More information about the ffmpeg-devel