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

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

parent 246c01b3
......@@ -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