[vlc-devel] [PATCH] Add HLS output option to write index revisions as different files

Chris Smowton cs448 at cam.ac.uk
Sun Mar 18 17:52:28 CET 2012


>
>> >  1. vlc_rename is not atomic under Win32. Atomic replacement of a
>> >  file is possible under Windows Vista and 7 using MoveFileTransacted,
>> >  but not under earlier versions and possibly not under later versions
>> >  (Microsoft are deprecating transactional NTFS for being too
>> >  difficult to maintain). This non-atomic replacement of the m3u8
> I think this patch tries to fix that vlc_rename in win32, but does it in
> wrong place. Better aproach would be trying to patch vlc_rename to work
> better in win32. For support in windows we seem to support from XP SP2,
> Vista and 7.
So my understanding is that atomic replacement using rename is 
impossible under versions of Windows prior to Vista (and perhaps after 
7, depending on how Microsoft resolves the question of transactional 
NTFS). vlc_rename currently works as well as it can under Windows XP, 
which is to say it non-atomically deletes the existing file then renames 
the old one in its place. Given that this can't be improved, this is my 
solution to produce versioned files that are usable under Win32.

Chris




More information about the vlc-devel mailing list