[vlc-commits] commit: scene: use vlc_rename(), fixes use on non-UTF8 systems ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Fri Apr 16 19:03:45 CEST 2010
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 16 19:57:02 2010 +0300| [40a90cfeb97f78f053069128a63b1f4052cda820] | committer: Rémi Denis-Courmont
scene: use vlc_rename(), fixes use on non-UTF8 systems
(cherry picked from commit 0d0e440d0913cdd29eae92685928c9d862cdfd70)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=40a90cfeb97f78f053069128a63b1f4052cda820
---
modules/video_filter/scene.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/video_filter/scene.c b/modules/video_filter/scene.c
index 532aae6..a19454b 100644
--- a/modules/video_filter/scene.c
+++ b/modules/video_filter/scene.c
@@ -38,6 +38,7 @@
#include "filter_picture.h"
#include <vlc_image.h>
#include <vlc_strings.h>
+#include <vlc_fs.h>
/*****************************************************************************
* Local prototypes
@@ -318,7 +319,7 @@ static void SavePicture( filter_t *p_filter, picture_t *p_pic )
else
{
/* switch to the final destination */
- i_ret = rename( psz_temp, psz_filename );
+ i_ret = vlc_rename( psz_temp, psz_filename );
if( i_ret == -1 )
{
msg_Err( p_filter, "could not rename snapshot %s %m", psz_filename );
More information about the vlc-commits
mailing list