From c282137c7fb604fc9c5efbc9810c857316c15fac Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 14 Jul 2010 23:11:28 +0300 Subject: [PATCH] scene: Windows cannot replace files atomically (fixes #3521) --- modules/video_filter/scene.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/video_filter/scene.c b/modules/video_filter/scene.c index a19454b8fd..ae6d78ab2c 100644 --- a/modules/video_filter/scene.c +++ b/modules/video_filter/scene.c @@ -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 ) { -- 2.39.2