[vlc-commits] scene: use vlc_strerror_c()
Rémi Denis-Courmont
git at videolan.org
Sun Dec 29 15:16:30 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 29 15:43:40 2013 +0200| [dcf15829c619bfcfdcf7983a6bdcb72d70817d1a] | committer: Rémi Denis-Courmont
scene: use vlc_strerror_c()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dcf15829c619bfcfdcf7983a6bdcb72d70817d1a
---
modules/video_filter/scene.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/video_filter/scene.c b/modules/video_filter/scene.c
index 1fbcd93..23d2783 100644
--- a/modules/video_filter/scene.c
+++ b/modules/video_filter/scene.c
@@ -31,6 +31,7 @@
#endif
#include <limits.h>
+#include <errno.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
@@ -334,7 +335,8 @@ static void SavePicture( filter_t *p_filter, picture_t *p_pic )
i_ret = vlc_rename( psz_temp, psz_filename );
if( i_ret == -1 )
{
- msg_Err( p_filter, "could not rename snapshot %s %m", psz_filename );
+ msg_Err( p_filter, "could not rename snapshot %s: %s",
+ psz_filename, vlc_strerror_c(errno) );
goto error;
}
}
More information about the vlc-commits
mailing list