[vlc-devel] commit: Dummy decoder: ASCII path, use utf8_open() for close-on-exec ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Oct 17 22:51:08 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 23:34:03 2009 +0300| [9f73b317af7540c4face4ec238e897ff8356f13e] | committer: Rémi Denis-Courmont
Dummy decoder: ASCII path, use utf8_open() for close-on-exec
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f73b317af7540c4face4ec238e897ff8356f13e
---
modules/misc/dummy/decoder.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/misc/dummy/decoder.c b/modules/misc/dummy/decoder.c
index ad1abaa..5098ac6 100644
--- a/modules/misc/dummy/decoder.c
+++ b/modules/misc/dummy/decoder.c
@@ -30,6 +30,7 @@
#include <vlc_common.h>
#include <vlc_codec.h>
+#include <vlc_charset.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h> /* write(), close() */
@@ -92,7 +93,7 @@ static int OpenDecoderCommon( vlc_object_t *p_this, bool b_force_dump )
}
if( b_force_dump )
{
- p_sys->i_fd = open( psz_file, O_WRONLY | O_CREAT | O_TRUNC, 00644 );
+ p_sys->i_fd = utf8_open( psz_file, O_WRONLY | O_CREAT | O_TRUNC, 00644 );
if( p_sys->i_fd == -1 )
{
More information about the vlc-devel
mailing list