Commit a5a2f07b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

scene: Windows cannot replace files atomically (fixes #3521)

(cherry picked from commit c282137c7fb604fc9c5efbc9810c857316c15fac)
parent 1511a470
......@@ -319,6 +319,9 @@ static void SavePicture( filter_t *p_filter, picture_t *p_pic )
else
{
/* switch to the final destination */
#if defined (WIN32)
vlc_unlink( psz_filename );
#endif
i_ret = vlc_rename( psz_temp, psz_filename );
if( i_ret == -1 )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment